Typescript Seed
March 5, 2017 ยท View on GitHub
Requirements
- Yarn
- NodeJS (NPM)
- Docker Client
- Developed with Visual Studio Code (optional)
Services
docker-compose up- postgres
Server
Install and Run
yarn installnpm start
Migrations
npm run migrate schema:syncnpm run migrate migrations:createnpm run migrate migrations:run
API
Local Server: http://localhost:5000/
| Endpoint | Method | URI |
|---|---|---|
| Login | POST | /login |
| Logout | DELETE | /logout |
| Sign Up | POST | /signup |
| Show User Info | GET | /users/{id} |
| Show My User Info | GET | /users/me |
| Update My User Info | PUT | /users/me |
WebApp
yarn installnpm start
Local Server: http://localhost:3000/