A website to allow users to look up usage for their favorite CitiBike docks
(Example commands given for Ubuntu)
- Install postgres
- Create a user
$ sudo -u postgres psql
- `postgres=# CREATE USER citibike WITH PASSWORD 'citibike'
- Create a database and a shadow database
postgres=# CREATE DATABASE 'dockdata';
postgres=# CREATE DATABASE 'dockdatashadow';
- Set your environment variables to reference these databases in
.env
DATABASE_URL='postgresql://citibike:citibike@localhost/dockdata'
SHADOW_DATABASE_URL='postgresql://citbike:citibike@localhost/dockdatashadow'
- Start the web server
npm run dev
- Start the prisma studio, allowing interactive access to the database via a web GUI
npx prisma studio
- Further Prisma CLI commands can be found on their website