Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

weather

Weather

*** not completed ***

Displays city weather

Tech used:
1. NodeJs
2. ApolloServer
3. ReactJs
4. ApolloClient
5. GraphQl
6. PostgresSQL
8. Prisma

Functionality

You can add city by name and remove city

Local setup

Make new PSQL db for application

SERVER

cd into server

make .env file into server root folder example .env file

DATABASE_URL="postgresql://USER:PASSWORD@HOST:PORT/DATABASE?schema=public"
API_KEY='your API key from https://openweathermap.org/'
PORT=4000

then:

npm install
npm run migrate
npm start

Now your server is running! And migrate file contains demo items data but not users!

CLIENT

new terminal cd into client folder

npm install
npm start

that should be it and your app is running

DB Creation and Migrations

If you modify prisma schema then you need to run:

npx prisma migrate dev --name nameYourMigration

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages