This is a Next.js project bootstrapped with create-next-app
.
To see our full documentation, please visit our documentation site.
To get a development environment running, follow the instructions below:
Install Node.js and npm or yarn. Then run:
yarn install
# or
npm install
You will also need a postgres database that you can use.
Clone the repository at https://github.com/UNIVERSE-HPC/course-material into the .material
folder.
Copy the .env
file to .env.local
and fill in the values. If you don't need to be able to authenticate, you only need to edit the DATABASE_URL
value to the URL of your database.
Then run the migrations:
yarn prisma migrate dev
The development server can be started with:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
Prisma Studio is a GUI for viewing and editing the database. It can be started with:
npx prisma studio
The prisma
command only reads from .env
and not .env.local
, so you will need to either copy the values from .env.local
to .env
, or use a command like dotenv
to populate the environment variables. For example:
npm install dotenv-cli -g
dotenv -e .env.local npx prisma studio
Gutenberg is automatically deployed to fly.io by a GitHub action whenever a new commit is pushed to the main
branch.
To see how to deploy the application, see our deployment guide.