git clone https://github.com/SAMAHAN-Systems-Development/samahan-all-for-more-backend.git
git fetch
git checkout 3-add-category
npm i
npx supabase start
node -e "console.log(require('crypto').randomBytes(64).toString('hex'))"
.env.example
file and rename it to .env.
You can accomplish this manually or run this command:
For Windows:
copy .env.example .env
For Linux:
cp .env.example .env
npm run prisma:migrate:reset
npx prisma generate
If you just turned your pc on and you want to start the application, run the following commands:
git pull origin main
npm i
npx supabase start
Note the service role key
and set the value of supabase_key
in your .env file to the value of the service role key.
npm run start
📌 After you finish programming, run this command to stop the docker containers:
npx supabase stop