Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noghartt/fakeddit
A Reddit clone developed as a monorepo with React + Relay + Node.js + MongoDB
https://github.com/noghartt/fakeddit
Last synced: 3 days ago
JSON representation
A Reddit clone developed as a monorepo with React + Relay + Node.js + MongoDB
- Host: GitHub
- URL: https://github.com/noghartt/fakeddit
- Owner: noghartt
- Created: 2021-06-27T06:14:29.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-07T03:20:08.000Z (over 1 year ago)
- Last Synced: 2024-08-02T15:06:10.233Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 2.29 MB
- Stars: 35
- Watchers: 2
- Forks: 2
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-woovi-challenge - Fakeddt - A Reddit clone developed as a monorepo with React + Relay + Node.js + MongoDB by [@noghartt](https://github.com/noghartt) (Challenges Fullstack)
README
# Fakeddit - An @entria challenge
> **:warning: ATTENTION**
>
> Some scripts of each project have been written based on \*nix commands (cp, mv,
> etc), so if you are running this project on a Windows-based system, you can have
> some problems running it. It'll fix soon. Feel free to create an issue if you find
> or a PR that fixes this problem!## How to run
### Developer environment
#### Setup Docker + MongoDB
```
docker run -d -p 27017:27017 --name fakeddit-mongo -d mongo:latest
```#### Copying the environment variables
```
yarn copy-envs
```And fill the environment variables on `@fakeddit/server` and `@fakeddit/web`
with the values.#### Install the dependencies
First of all, install the dependencies.
```
yarn install
```#### Running server
Generate the `schema.graphql` file running:
```
yarn workspace @fakeddit/server schema:generate
```Now, run the server:
```
yarn workspace @fakeddit/server start:dev
```#### Running the web app
First of all, generate the types (artifacts) from `relay-compiler`:
```
yarn workspace @fakeddit/web relay
```And now, you can run the web project:
```
yarn workspace @fakeddit/web start:dev
```### Running packages together
If you already do the necessary setup on the packages, you can run the packages
concurrently with just only one command:```
yarn dev:all
```To run the project as dev mode.
## References
- [Relay Realworld](https://github.com/sibelius/relay-realworld)
- [RBAF GraphQL API](https://github.com/daniloab/rbaf-graphql-api)
- [Dev Su](https://github.com/Tsugami/dev-su)
- [Fullstack Playground](https://github.com/daniloab/fullstack-playground)