Proof of concept ride planner for club.
This app is built with NextJS and uses Next Auth, Prisma and a MySQL database (hosted on PlanetScale). because of the Next Auth dependency, Node 18 is not currently supported. Use nvm to install and use version 16.
git clone git@github.com:airburst/bcc.git
cd bcc && npm install
Add a .env
file: Copy .env.example
and populate values for your database and auth provider. The convenience script npm run connect
will create a proxy to a PlanetScale db if you choose to host there.
Run this command to publish the Prisma schema to db:
npm run pushdb
And then launch in dev mode:
npm run dev
Schema changes cannot be pushed directly to production (main branch). Read more here.
- Make desired DDL changes to
prisma/schema.prisma
- Connect to a non-production PlanetScale db instance:
yarn connect:dev
- Deploy changes to a non-production database:
yarn pushdb
- Once you are happy with your changes on your development branch, you can open a deploy request to deploy these to your production branch.
- Navigate to https://app.planetscale.com/mark-fairhurst/bcc-rides/dev
- Click
Create Deploy Request
- If that passes, click
Deploy Changes
See Customisation docs.