Skip to content

Collaboration with DLSU SHORE: Capacity Building on Reef Assessment and Coral Taxonomy Phase 2 (CBRACT2)

License

Notifications You must be signed in to change notification settings

dlsudatasci/shore-reef-coral

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

The backend is built with Prisma with a MySQL flavor.

Prerequisites

Getting Started

1.) Install all dependencies:

npm install
# or
yarn install

2.) Get the .env file from the ALTDSI discord channel in the pinned messages

3.) Replace the username and password of your MySQL server to the DB_URL variable in the .env file

  • Format: DB_URL=mysql://[username]:[password]@localhost:3306/shore
  • Example: DB_URL=mysql://root:1234@localhost:3306/shore

4.) Run all the database migrations to build the backend:

npm run migrate:dev
# or
yarn migrate:dev

5.) Lastly, run the development server:

npm run dev
# or
yarn dev

Making changes to the backend

  • Update schema.prisma file
  • npx prisma generate
  • npx prisma migrate dev --name
  • npm run migrate:dev

When making changes to schema.prisma, make sure to run migrations again for changes to take effect in the database and the frontend client library.

About

Collaboration with DLSU SHORE: Capacity Building on Reef Assessment and Coral Taxonomy Phase 2 (CBRACT2)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published