cms
cms copied to clipboard
CMS
Setup Procedure
-
Docker
OR
-
Copy .env.example to .env
-
Get a postgres db from https://neon.tech/ (or any other provider)
-
Replace the DATABASE_URL in .env
-
Run
npx prisma migrate devto setup schema
Steps to run locally
With Docker
docker compose up
Without Docker
npm installnpm run db:seedto seed the databasenpm run dev- Login using any userid and password 123456
- You should be able to see some test courses
Make sure to lint and format your code before creating a PR
npm run lint:checkto check for lint errorsnpm run lint:fixto fix lint errorsnpm run format:checkto format the codenpm run format:fixto fix the formatting- If the code is not formatted properly, the CI will fail
Read contributing guidelines to start making contributions