Skip to content

Fullstack Hackernews clone with React, GraphQL, Prisma and Postgres

Notifications You must be signed in to change notification settings

CagriUysal/hackernews-clone

Repository files navigation

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.

About

Fullstack Hackernews clone with React, GraphQL, Prisma and Postgres

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages