Implemenation of learn-how-to-use-typescript-with-node-js-and-express-js articles series.
- GET /api/token
- GET /api/teams/
- POST /api/teams
-
- Body example: { "name": "test", "league": "test league" }
- GET /api/teams/{id}
- PATCH /api/teams/{id}
- DELETE /api/teams/{id}
- Create .env file, you can find the variables names in /.env.example file
- From the project root directory run
docker-compose up
- The api now is running on http://localhost:3000
- Follow the steps here scripts to create the database schema
- Create .env file, you can find the variables names in /.env.example file
- From the project root directory run
docker-compose up mysql
to start a mysql instance - Follow the steps here scripts to create the database schema
- Run
npm install
to install the project dependencies - Run
npm run start:watch
- The api now is running on http://localhost:3000