This is a Next.js project bootstrapped with create-next-app
.
If you haven't installed Docker yet, download and install it from the official website:
Make sure Docker is running before proceeding.
If you already have Docker files set up, simply run the following command to start your Next.js app along with PostgreSQL:
docker-compose up -d
If you want to run PostgreSQL locally, you can use the following command:
npx prisma migrate dev --name init
npx prisma db push
npx prisma db seed
You can open the database studio using the following command:
npx prisma studio
or to connect to the database on the command line
docker-compose exec postgres psql -U admin -d learning_platform -W
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
email: [email protected] password: password123
docker-compose down
You can start editing the page by modifying app/page.tsx
. The page auto-updates as you edit the file.
This project uses next/font
to automatically optimize and load Geist, a new font family for Vercel.
To learn more about Next.js, take a look at the following resources:
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.