Skip to content

air-hockey/match-history

Repository files navigation

code style: prettier

match-history

Installation

  1. If you don't have Docker installed already, you can download it for your platform using the following links:
  2. Once the installer was downloaded, double-click on it and follow the instructions for the installation on your platform.
  3. Install dependencies:
    yarn

First time setup

  1. Start the database docker container (may take awhile on first run):
    yarn run db
  2. Deploy prisma to the database:
    yarn run prisma:deploy

Run

  1. Start the database:
    yarn run db
  2. Build the application:
    yarn run build
  3. Start the application:
    yarn start

Development

When developing, you can either develop with persistent data from your local database, or with mocked data.

Using local database

  1. Start the database:
    yarn run db
  2. Start the application in dev mode:
    yarn run dev

Using mocked data

  1. Start the application in dev mock mode:
    yarn run dev:mock

Debug mode

You can run the server in debug mode, which will allow you to attach a remote debugger to the node process:

yarn run debug

or

yarn run debug:mock

Authentication

Authentication is provided by Facebook Login. To set up, you'll need to add a Facebook App ID to now-secrets.json as @facebook-app-id.

Mocking data

It may be helpful to mock the backend while developing on the frontend. To do this, add to the mocks.js file in server/src/mocks.js. You can use casual to help build user-friendly mocks.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published