https://github.com/sergeevgk/rs_school_nodejs
RS School NodeJS course 2020Q3
https://github.com/sergeevgk/rs_school_nodejs
backend express js mongodb mongoose nodejs
Last synced: 5 months ago
JSON representation
RS School NodeJS course 2020Q3
- Host: GitHub
- URL: https://github.com/sergeevgk/rs_school_nodejs
- Owner: sergeevgk
- Created: 2020-09-28T17:13:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-12-07T11:30:37.000Z (over 1 year ago)
- Last Synced: 2024-12-30T07:22:34.925Z (over 1 year ago)
- Topics: backend, express, js, mongodb, mongoose, nodejs
- Language: JavaScript
- Homepage:
- Size: 994 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RS School REST service
## Prerequisites
- Git - [Download & Install Git](https://git-scm.com/downloads).
- Node.js - [Download & Install Node.js](https://nodejs.org/en/download/) and the npm package manager.
## Downloading
```
git clone {repository URL}
```
## Installing NPM modules
```
npm install
```
## Running application
```
npm start
```
After starting the app on port (4000 as default) you can open
in your browser OpenAPI documentation by typing http://localhost:4000/doc/.
For more information about OpenAPI/Swagger please visit https://swagger.io/.
## Testing
After application running open new terminal and enter:
To run all tests without authorization
```
npm test
```
To run only one of all test suites (users, boards or tasks)
```
npm test
```
To run all test with authorization
```
npm run test:auth
```
To run only specific test suite with authorization (users, boards or tasks)
```
npm run test:auth
```
## Development
If you're using VSCode, you can get a better developer experience from integration with [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) and [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) extensions.
### Auto-fix and format
```
npm run lint
```
### Debugging in VSCode
Press F5 to debug.
For more information, visit: https://code.visualstudio.com/docs/editor/debugging