git clone https://github.com/FrankenSteinxD/lector-backend.git
cd lector-backend
npm install
oryarn install
- create a
.env
file in the main directory and it should have these variables:-
DB_URL
the url of the databasemongodb://localhost:27017/lector
-
PORT
the port that the app should run on.7000
-
JWT_SECRET
a secret that is used by jsonwebtoken.thisisverysecuresecret
-
DEFAULT_STORY_COVER
a url of a default story cover.www.google.com/images/me.jpg
-
npm start
or yarn start
npm run lint
or yarn lint
npm run test
or yarn test
npm run build:docs
or yarn build:docs