Skip to content

Latest commit

 

History

History
87 lines (55 loc) · 2.71 KB

README.md

File metadata and controls

87 lines (55 loc) · 2.71 KB

Vercel Website Stars

Dive Log

🤿 Easy to use Dive Logbook for Scuba Divers.

Use here: https://divelog.vercel.app/

Develop

This is a T3 Stack project bootstrapped with create-t3-app.

The main technologies used are:

Contributions

PRs are welcome 😄

There's a TODO.md file with the pending tasks.

Commands

# Setup
npm i

# Run in dev mode
npm run dev

# Lint
npm run lint

# Build
npm run build

# Tests
npm run test

DB

The database is hosted on PlanetScale. Here you can update the schema by creating a Deploy request from the dev branch after you run npx prisma db push:

To view the contents of the db, use the Prisma Data Platform:

You can also run Prisma studio locally with the following command. It will load the db based on your DATABASE_URL environment variable from the .env file.

npx prisma studio

Environment variables

To connect to the database and authentication providers, you need a .env file in the root. This file is private and the only way to get it is to ask someone that has it to send it to you, in this case, the maintainers of the project.

For authenication to work, at least one set of client ID and client secret needs to be set.

  • DISCORD_CLIENT_ID, DISCORD_CLIENT_SECRET`.

  • GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET.

  • FACEBOOK_CLIENT_ID, FACEBOOK_CLIENT_SECRET.

  • GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET. Maintainers:

  • @mauriciabad

Backend server

We use Vercel as the backend server: