Project for studying and experiment with server side by NodeJS. In the context of the project will be implemented API for blog.
Before start app, you should pass env: MONGO_URI
There are several ways to pass env.
Pass it before start app:
MONGO_URI=mongodb://localhost/my_database
Add to: ./config/default.json
"mongo": {
"uri": "mongodb://localhost/my_database"
},
Or create file: .env
MONGO_URI=mongodb://localhost/my_database
# Install dependencies
yarn install
# Run server
yarn start
# Run server with nodemon
yarn dev
# Run lint
yarn lint
# Fix lint errors
yarn lint:fix