https://github.com/shtbik/graphql-feed-list
News app with infinity loader and websockets
https://github.com/shtbik/graphql-feed-list
graphql graphql-yoga material-components material-ui prisma react websocket
Last synced: 2 months ago
JSON representation
News app with infinity loader and websockets
- Host: GitHub
- URL: https://github.com/shtbik/graphql-feed-list
- Owner: shtbik
- Created: 2019-01-14T13:16:52.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T13:45:27.000Z (over 3 years ago)
- Last Synced: 2023-02-27T20:28:10.186Z (over 3 years ago)
- Topics: graphql, graphql-yoga, material-components, material-ui, prisma, react, websocket
- Language: JavaScript
- Homepage: https://client-feed-list-prod.herokuapp.com/
- Size: 3.71 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 35
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Demo
DEV - https://client-feed-list-dev.herokuapp.com/ (US)
PROD - https://client-feed-list-prod.herokuapp.com/ (EU)
test@test.ru | 123456
## UI


## Start Project
1. yarn install
2. create .env.local for client
3. cd ./server && yarn install
4. create .env.local for server
5. yarn start
6. yarn start:server
7. localhost:3000 - client
8. localhost:4000 - server
## Deploy Client to Heroku
1. yarn client:deploy:\${env}
https://medium.com/@agavitalis/how-to-deploy-a-simple-static-html-website-on-heroku-492697238e48
## Deploy Schema to Prisma
1. cd ./server
2. schema:generate:\${env}
3. prisma:deploy:\${env}
https://us1.prisma.sh/alexander-shtykov-ca308e/prisma/dev
https://eu1.prisma.sh/alexander-shtykov-ca308e/prisma/prod
## Deploy Server to Heroku
1. server:deploy:{env}
https://graphql-feed-list-dev.herokuapp.com/
https://graphql-feed-list-prod.herokuapp.com/
https://medium.com/@shalandy/deploy-git-subdirectory-to-heroku-ea05e95fce1f
## About Prisma
For start both schemas at single playground at the moment you should:
1. cd ./server
2. yarn start - local queries/mutations
3. yarn start:plgr - include prisma queries/mutations
https://www.prisma.io/docs/1.13/tutorials/build-graphql-servers/development/build-a-graphql-server-from-scratch-nahgaghei6#generating-the-prisma-database-schema
## TODO
- move to monorepo for client and server sides
- fix few loaders after searching and scrolling
- change client's schemes format
- move to prisma v2, TypeScript
- test coverage (unit)
- add upvoting feature
- add personal page with list of contents
- add new fields (title, source, author, etc.) to feed model