Weather App allows checking the weather forecast for a selected city and a single day in the current month or upcoming 5-days.
Weather App API based on Nest framework TypeScript starter repository.
Weather App Web based on CRA bootstrap with TypeScript template and MaterialUI components.
The "docker-compose" script creates both API and web app (nginx). API uses postgres database inside the docker container.
docker-compose build --pull
docker-compose up
# web - http://localhost
# api - http://localhost:3000
API locally uses sqlite database.
$ yarn
# development
$ yarn start
# watch mode
$ yarn start:dev
# production mode
$ yarn start:prod
# unit tests
$ yarn test
# e2e tests
$ yarn test:e2e
# test coverage
$ yarn test:cov
$ yarn
# development
$ yarn start
# production
$ yarn build
$ yarn global add serve
$ serve -s build
# tests
$ yarn test
Run API locally before running below script.
$ yarn generate-swagger-types