Skip to content

Latest commit

 

History

History
41 lines (24 loc) · 1.01 KB

README.md

File metadata and controls

41 lines (24 loc) · 1.01 KB

Hackernews Clone

A full stack hackernews clone build with React, GraphQL, Prisma and Postgres.

Home Page

Install

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.

Mocking

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.

To-Do

There are lots of undocumented features in hackernews. In the future, missing pages and features can be added.