Skip to content

πŸ§‘πŸ»β€πŸ’» The source code to my website/blog thielker.dev

License

Notifications You must be signed in to change notification settings

MarkusThielker/portfolio

Repository files navigation

Portfolio

This repository contains the source code of my portfolio/blog which is currently under active development.

Getting started

  1. 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
  2. Install the npm dependencies:

    npm install
  3. 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
  4. Finally, start the development server:

    npm run dev

Now open localhost:3000 and start editing!