*** not completed ***
Displays city weather
Tech used:
1. NodeJs
2. ApolloServer
3. ReactJs
4. ApolloClient
5. GraphQl
6. PostgresSQL
8. Prisma
You can add city by name and remove city
Make new PSQL db for application
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!
new terminal cd into client folder
npm install
npm start
that should be it and your app is running
If you modify prisma schema then you need to run:
npx prisma migrate dev --name nameYourMigration