This is my portfolio https://s1n7ax.com built with Rust 🦀
demo.mp4
- Clone the project
- Prepare the dev environment
- Using direnv (recommended)
- Allow the direnv to initiate the environment using
direnv allow
- Allow the direnv to initiate the environment using
- Using Devcontainer
- Run the dev container
devcontainer up --workspace-folder . - Open up the shell
devcontainer exec --workspace-folder . bash
- Run the dev container
- Using direnv (recommended)
- Install node dependencies
yarn install - Run tailwind watch process
yarn dev - Open the browser
http://localhost:3000
Deployment is done using docker images.
Github workflow in this project, builds a new image and push it to docker hub. For the deployment, SSH should be configured in the server.
Following secrets should be registered in the Github Actions
DOCKERHUB_USERNAME- Name of the docker hub userDOCKERHUB_TOKEN- Access tokenDO_IP- IP of the serverDO_USERNAME- Name of the user in the serverDO_SSH_PRIVATE_KEY- SSH Private key
Using the certbot client, we can request a new certificate.
docker compose up certbotLet's encrypt certificate will be outdated in 90 days. So another request has to be made to update. This can be automated using a cron job
This documentation shows how to add a crone job to automatically renew the certificate