Skip to content

Weather App - Fullstack Node (Nest.js) / React project

Notifications You must be signed in to change notification settings

t-guzik/weather-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather App

Weather App allows checking the weather forecast for a selected city and a single day in the current month or upcoming 5-days.

Tech Stack

Weather App API based on Nest framework TypeScript starter repository.

Weather App Web based on CRA bootstrap with TypeScript template and MaterialUI components.

Docker usage

The "docker-compose" script creates both API and web app (nginx). API uses postgres database inside the docker container.

Building

docker-compose build --pull

Running

docker-compose up
# web - http://localhost
# api - http://localhost:3000

Local usage

API

API locally uses sqlite database.

Installation

$ yarn

Running the app

# development
$ yarn start

# watch mode
$ yarn start:dev

# production mode
$ yarn start:prod

Test

# unit tests
$ yarn test

# e2e tests
$ yarn test:e2e

# test coverage
$ yarn test:cov

Web app

Installation

$ yarn

Running the app

# development
$ yarn start
# production
$ yarn build
$ yarn global add serve
$ serve -s build

Test

# tests
$ yarn test

Generating API types

Run API locally before running below script.

$ yarn generate-swagger-types

About

Weather App - Fullstack Node (Nest.js) / React project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published