Typescript Seed

March 5, 2017 ยท View on GitHub

Requirements

Services

  • docker-compose up
    • postgres

Server

Install and Run

  • yarn install
  • npm start

Migrations

  • npm run migrate schema:sync
  • npm run migrate migrations:create
  • npm run migrate migrations:run

API

Local Server: http://localhost:5000/

EndpointMethodURI
LoginPOST/login
LogoutDELETE/logout
Sign UpPOST/signup
Show User InfoGET/users/{id}
Show My User InfoGET/users/me
Update My User InfoPUT/users/me

WebApp

  • yarn install
  • npm start

Local Server: http://localhost:3000/