⚠️ ATTENTIONSome 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!
docker run -d -p 27017:27017 --name fakeddit-mongo -d mongo:latest
yarn copy-envs
And fill the environment variables on @fakeddit/server
and @fakeddit/web
with the values.
First of all, install the dependencies.
yarn install
Generate the schema.graphql
file running:
yarn workspace @fakeddit/server schema:generate
Now, run the server:
yarn workspace @fakeddit/server start:dev
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
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.