This repository contains the source code of my portfolio/blog which is currently under active development.
-
Start the PostgreSQL database. It will be the backbone of our application and locally available on port 5432. The setup is provided using docker. The credentials can be found in the docker-compose.yaml file.
docker compose -f docker/portfolio-dev/docker-compose.yaml up -d
-
Install the npm dependencies:
npm install
-
After installing the dependencies, you need to apply the database migrations and generate the prisma client. The initial migrations set up the database scheme for the Lucia authentication. Prisma then generates the client based on the database model to provide typed access to the database.
npx prisma migrate deploy # apply the database migrations npx prisma generate # generate the prisma client
-
Finally, start the development server:
npm run dev
Now open localhost:3000 and start editing!