Skip to content

StphnDamon/hackernews_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hacker News

Install

You need to have MongoDB pre-installed and, if needed, change the conf in conf/config.js

If you don't have PM2 installed, please run npm install -g pm2

By defaut, the server runs on port 8081 but you can change it in conf/config.js

Run server

Start server with PM2 choosing the "right" ecosystem (in dev, server restart for each file modification) : npm start See logs with pm2 logs server

Start server without PM2 : node server

Run tests

With code coverage /node_modules/.bin/istanbul cover node_modules/.bin/_mocha tests/**/*.js src

Without code coverage /node_modules/.bin/_mocha tests/**/*.js

About

GraphQL server using Express and MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published