A full stack hackernews clone build with React, GraphQL, Prisma and Postgres.
To quick start, rename .env.example
files to .env
in both client
and server
directories.
If you want to use different values for URLs in .env, you should also configure docker-compose.yml
accordingly.
To start development, run,
docker-compose up
in the root folder.
Then, you can go to localhost:1234
for web client, and, localhost:4000
for GraphQL playground.
You can mock database with real Hackernews data. It uses Hackernews API to fetch recent top posts and couple comments.
Note: Mocked users have the same password as username.
Run,
docker-compose exec server yarn mock
after all services up.
There are lots of undocumented features in hackernews. In the future, missing pages and features can be added.