Skip to content

joaogularte/user-github-api

Repository files navigation

user-github-api

User GitHub Api created with GitHub API.

GET -> /api/users?since={number}

GET -> /api/users/:username/details

GET -> /api/users/:username/repos

Stack

Responsability What
Process Managament PM2
Code Standard ESLint
HTTP Headers Helmet
Test Runner Mocha
CORS CORS
Body Parsing Body Parser
Versioning Git
Schema Validation Joi
Response body compression Compression

Installing and running the app with PM2

$ cp .env.sample .env
$ npm install
$ npm install -g pm2
$ npm start

Running in dev with nodemon

$ cp .env.sample .env
$ npm install
$ npm install -g nodemon
$ npm run dev

Running tests

$ npm run test-integration

$ npm run test-unit 

Running lint

$ npm run lint

About

User GitHub Api created with GitHub API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors