Skip to content

Latest commit

 

History

History
56 lines (41 loc) · 951 Bytes

README.md

File metadata and controls

56 lines (41 loc) · 951 Bytes

Proyectapp API

styleB

This is the API for proyectapp, developed from Create Koa API. asdasdasd

Requirements

  • Node >=8.5.0
  • Yarn >=1.0.1
  • Postgres

Setup

Assuming you have already created the postgres db and cloned the repo.

Create a .envrc file in the repo root to fill the env variables:

export DB_PASSWORD=somepassword
export DB_USERNAME=somedbuser
export DB_DIALECT=postgres
export DB_NAME=somedb
export DB_HOST=someip

then do

source .envrc

Or use direnv.

Then install the app:

$ yarn install

Create db and run migrations:

yarn run db:create
yarn run db:migrate
yarn run db:seed

Start your server and code!

yarn dev