Skip to content

VamosJuntas/vamosjuntas-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9044ee0 · Aug 11, 2017

History

78 Commits
Nov 20, 2016
Jul 3, 2016
Nov 20, 2016
Jan 30, 2017
Oct 18, 2016
Jun 30, 2016
Jul 1, 2016
Jul 3, 2016
Aug 11, 2017
Nov 20, 2016
Aug 5, 2017
Jun 30, 2016
Nov 20, 2016

Repository files navigation

Build Status

VamosJuntas REST API

Installation

Install Brew in your Mac and then install Mongo:

brew install mongodb

Install services in brew to manage MongoDb:

brew tap homebrew/services

Install project dependencies:

npm install

MongoDB

With brew and brew services installed (see above), manage Mongo with following commands:

Start

brew services start mongodb

Stop

brew services stop mongodb

Restart

brew services restart mongodb

Run App Locally

node bin/www

Tests

Test script will run the folling commands: lint > unit > integration

npm test

Lint

npm run lint

Unit

npm run unit-test

Integration

Note: Before you should start mongodb service.

npm run integration-test

Docker

Starts docker machine

docker-machine start

docker-machine env

eval $(docker-machine env)

Build images

docker-compose -f docker-compose-dev.yml build db

docker-compose -f docker-compose-dev.yml build test

OR

docker-compose -f docker-compose-dev.yml build web

Start API

docker-compose -f docker-compose-dev.yml up web

It will expose the 3001 port in the docker machine. You can check it by typing docker ps.

Tests

Runs test script

docker-compose -f docker-compose-dev.yml run test

Lint

docker-compose -f docker-compose-dev.yml run test npm run lint

Unit

docker-compose -f docker-compose-dev.yml run test npm run unit-test

Integration

docker-compose -f docker-compose-dev.yml run test npm run integration-test

About

REST API do Vamos Juntas!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published