Skip to content

My new portfolio made as part of the HAMK Fullstack Web Development course.

Notifications You must be signed in to change notification settings

sakuexe/fullstack-portfolio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fullstack Portfolio Website

Running the project in development

  1. Clone the repository
git clone https://github.com/sakuexe/fullstack-portfolio.git
  1. Install the dependencies
cd dotnet-portfolio
dotnet restore
npm ci
  1. Run the project
dotnet run
  1. For Development, run the project in watch mode
# run the project in watch mode
npm run dev & dotnet watch

Deployment

  1. Clone the project
git clone https://github.com/sakuexe/fullstack-portfolio.git
  1. Install docker

Guide for Ubuntu: Install Docker Engine on Ubuntu

  1. Update the environment variables in the docker-compose file

  2. Add your domain to the Caddyfile

# Caddyfile
yourdomain.com {
    reverse_proxy dotnet:80
}
# with a quick sed command
sed -i 's/sakukarttunen.com/yourdomain.cool/g' caddy/Caddyfile
  1. Run docker compose

This will build the images and run the containers in the background

docker compose up --build -d
  1. Visit your domain

It should now have SSL certificates and have base data from the database. The initial build will take a while, when caddy has to get the certificates from Let's Encrypt.

  1. (Optional) Run the docker compose automatically on boot

All you have to do is add a symbolic link to /etc/systemd/system/ and enable the service

sudo ln -s $(pwd)/portfolio-docker.service /etc/systemd/system/
sudo systemctl enable portfolio-docker
sudo systemctl start portfolio-docker # if you haven't yet started the service
sudo systemctl status portfolio-docker

About

My new portfolio made as part of the HAMK Fullstack Web Development course.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published