Skip to content

VictorienDruon/baco

Repository files navigation

Baco

Setup

Step 1: Modify Hosts File

Add the following line to your /etc/hosts file:

127.0.0.1 baco.localhost

Step 2: Database Setup

2.1 Run the Database

Start the database container using Docker:

docker compose up database -d

2.2 Push Prisma Schema to Database

Use Prisma to push your schema to the database:

npx prisma db push

2.3 Seed the Database

Seed your database with initial data:

npx prisma db seed

Step 3: Generate Secret Key

3.1 Generate a Secret Key

Create a secure secret key for symmetric encryption:

openssl rand -base64 32

3.2 Update Environment Variables

Add the generated secret key to your .env file:

ACCESS_TOKEN_SECRET_KEY=your_generated_secret_key
REFRESH_TOKEN_SECRET_KEY=another_generated_secret_key

Commands frequently used

npm i # Install dependencies
npx nx serve server # Start the server
npx nx serve web # Start the web client
npx prisma generate # Generate Prisma Client
npx lingui extract # Extract messages
npx lingui compile # Compile messages

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •