Skip to content

Files

Latest commit

b186496 · Feb 19, 2025

History

History

backend

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 20, 2022
Feb 19, 2025
May 7, 2024
Jan 25, 2024
May 9, 2024
Jan 12, 2022
Aug 26, 2022
Mar 31, 2023
May 7, 2024
Jan 20, 2022
Feb 9, 2023
Jan 25, 2024
Jan 25, 2024
Jan 25, 2024
May 6, 2024
Jan 25, 2024
Apr 17, 2023
Jan 25, 2024

Backend

This is the backend for the frontend.

Setup

Make sure to install the dependencies first:

yarn install

The .tool-versions file contains the versions of the tools used in this project. If you use asdf, you can run asdf install to install the correct versions.

Next, create a .env file. The template for the files is .env.example.

Generate the Prisma client:

yarn db:client:gen

If you want to use the database migrations, you need to run the following command:

yarn db:migration:deploy

Development

Start the development server on http://localhost:3001 (by default, set the PORT environment variable to change the port):

yarn dev

To generate a new migration, run the following command:

yarn db:migration:new

To format the prisma schema, run the following command:

yarn db:schema:format

Production

Build the application for production:

yarn build

Start the application in production mode:

yarn start