BenJam / prct

PRCT Rides App

Home Page:https://prct-rides.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BCC Rides App

Proof of concept ride planner for club.

Installation

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

Making database schema changes

Schema changes cannot be pushed directly to production (main branch). Read more here.

  1. Make desired DDL changes to prisma/schema.prisma
  2. Connect to a non-production PlanetScale db instance:
yarn connect:dev
  1. Deploy changes to a non-production database:
yarn pushdb
  1. Once you are happy with your changes on your development branch, you can open a deploy request to deploy these to your production branch.

Making a copy of the app

See Customisation docs.

About

PRCT Rides App

https://prct-rides.vercel.app


Languages

Language:TypeScript 96.7%Language:JavaScript 3.0%Language:CSS 0.2%Language:Shell 0.0%