- Just for practice purposes.
- The following commands may not work or follow the best practices.
- default port: 80
- API url: http://localhost:3002
docker container run ashleylai/workshop:web
- GET /
- GET /certifications
- GET /courses
- default port: 3002
- env:
- PORT={api port}
- DB_PORT=6379
- DB_HOST=localhost
docker container run ashleylai/workshop:api
- GET /
- GET /api/1.0/certifications
- read JSON data from /src/data folder
- GET /api/1.0/courses
- read data from database
- default port: 6379
docker container run ashleylai/workshop:db
$ redis-cli
> keys *
> hgetall course:1