Skip to content

A Race game developed in one week using React, Styled Components, NodeJS, GraphQL and much fun 🚙 😁

License

Notifications You must be signed in to change notification settings

gabriel-hahn/react-race-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Race Game

Codacy Badge contributions welcome Bugs The MIT License

A Race game developed in one week using React, Styled Components, NodeJS, GraphQL and much fun 🚙 😁

NodeJS Express GraphQL Mongoose React @Apollo
10.16.0 4.17.1 15.0.0 5.9.13 16.13.1 3.1.3

Getting Started

I recommend use NPM or Yarn as package management and install all dependencies using it, running yarn or npm install inside each folder (app and api).

If you have some issues related to permissions, just add the sudo command before yarn/npm command, as sudo yarn.

Environment Variables

One important thing before start running this project locally is set up all environment variables. You can set them for back-end creating a .env file on api folder root and following this structure:

  APP_DOMAIN=App Domain with port, probably http://locahost:3000 at this moment.
  MONGODB_USER=MongoDB user (connection)
  MONGODB_PASSWORD=MongoDB password (connection)

You should do the same on front-end, adding an .env file to app folder root:

  REACT_APP_API_URL=Api domain with port, probably http://localhost:3333 running it locally.

Running the project

To run the project after install all dependecies, you can just run yarn dev or npm run dev (Front-end) and yarn start:dev or npm run start:dev (Back-end).

Tests

You can run yarn test inside app folder for Front-end tests. Back-end does not have unit tests yet.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

Gabriel Hahn Schaeffer

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

A Race game developed in one week using React, Styled Components, NodeJS, GraphQL and much fun 🚙 😁

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published