- If you don't have Docker installed already, you can download it for your platform using the following links:
- Once the installer was downloaded, double-click on it and follow the instructions for the installation on your platform.
- Install dependencies:
yarn
- Start the database docker container (may take awhile on first run):
yarn run db
- Deploy prisma to the database:
yarn run prisma:deploy
- Start the database:
yarn run db
- Build the application:
yarn run build
- Start the application:
yarn start
When developing, you can either develop with persistent data from your local database, or with mocked data.
- Start the database:
yarn run db
- Start the application in dev mode:
yarn run dev
- Start the application in dev mock mode:
yarn run dev:mock
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 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
.
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.