Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/serhiinikif/rest-api-mssql
https://github.com/serhiinikif/rest-api-mssql
cors docker dotenv express middleware mssql nodejs rest-api sequelize
Last synced: about 3 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/serhiinikif/rest-api-mssql
- Owner: SerhiiNikif
- Created: 2023-06-17T11:24:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-20T16:58:17.000Z (about 1 year ago)
- Last Synced: 2023-08-20T17:58:25.321Z (about 1 year ago)
- Topics: cors, docker, dotenv, express, middleware, mssql, nodejs, rest-api, sequelize
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# How to use:
## 1. Clone Project into your local machine
```
git clone https://github.com/SerhiiNikif/rest-api-mssql.git
```## 2. Go into project folder and install project dependencies.
```
cd rest-api-mssql
```
```
npm install
```## 4. Setting environment file `.env`.
Simply copy `.env.sample` as `.env`, then edit it based on your need.
> Check that the 'sa' user on your local server has the same password as in the .env file.## 5. Start project
For local use:
> Your local server should be running.
```
npm run dev
```If you run docker:
```
docker-compose up -d
npm run dev:docker
```
The `animals` DB and `dogs` table will be created, the fields will be filled.## 6. Let's login to Server Management Studio:
__Server name__: `localhost`(Local use) __or__ `localhost, 14333`(Docker)
__Login__: sa
__Password__: