Git Product home page Git Product logo

fakeddit's Introduction

Fakeddit - An @entria challenge

โš ๏ธ 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

fakeddit's People

Contributors

dependabot[bot] avatar nicolaslopes7 avatar noghartt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fakeddit's Issues

Improve the docs

  • How to run the project
  • How to create the database
  • How to run utils commands
  • Some info about the project

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.