This is a simple Node.js server application with CRUD operations. It provides REST APIs.
Before using it, please ensure that you've already installed the following programs
Git (as version control)
Node.js (as server app),
Yarn as Node.js package manager
MongoDb (as database) programs.
If you haven't, these are their links for installing
Program/lib | version | command for checking
Git | 2.24.0 | git --version
Node.js | v8.12.0 | node -v
Express | ^4.17.1 | see in this app package.json
MongoDB | v4.2.1 | mongo --version
Mongoose | ^5.7.13 | see in this app package.json
Mocha | 6.2.2 | see in this app package.json
Yarn | 1.19.1 | yarn -v
- At first clone this repository
git clone https://github.com/Vladinho10/node-server-template.git - After it you should write your git credentials (if it needs)
- enter downloaded directory
cd node-server-template - create your .env file like .env.example file
for npm
- install packages
npm i - run server
npm run startor
npm start - if you want your server stay always running
npm run nodemon
for yarn
- install packages
yarn - run server
yarn run startor
yarn start - if you want your server stay always running
yarn run nodemonor
yarn nodemon
We are inspired from Airbnb eslint configurations. We suggest eslint config our version, and we'd love to accept any suggestions about the code style which is in line with our philosophy )) ###Table of Contents