Skip to content
This repository has been archived by the owner on Nov 25, 2021. It is now read-only.

Latest commit

 

History

History
67 lines (49 loc) · 1.18 KB

README.md

File metadata and controls

67 lines (49 loc) · 1.18 KB

Blog-API

code style: prettier tested with jest

Project for studying and experiment with server side by NodeJS. In the context of the project will be implemented API for blog.

Main packages:

Settings

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

Use

# Install dependencies
yarn install
# Run server
yarn start
# Run server with nodemon
yarn dev
# Run lint
yarn lint
# Fix lint errors
yarn lint:fix