Check it out: https://joshdels.topmapsolutions.com/ This includes my projects, freelancing templates, portfolio, invoices and even project management system
- Built with Nextjs and Supabase
- Interactive MapLibre maps
- Mailbox integration with maps
Im happy for your suggestions
Clone the repository
git clone https://github.com/joshdels/supabase-next-ts-my-official-website
more of this in the documentation https://supabase.com/docs/guides/getting-started/quickstarts/nextjs
NEXT_PUBLIC_SUPABASE_URL="YOUR SUPABASE URL"
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY = "YOUR SUPABASE KEY""
SUPABASE_URL="KEY"
SUPABASE_ANON_KEY="KEY"
npm install
npm run dev
docker-compose -f docker-compose.prod.yml up -d --build
docker-compose down -v
- Generate SSH keys on your local machine
ssh-keygen -t rsa -b 4096 -C "github-action" -f github-action-key
- Copy the public key to your server
ssh -i github-action-key.pub user@your_server_ip
- Add the key to authorized keys inside the server
ssh user@your_server_ip
cat github-action-key.pub
nano ~/.ssh/authorized_keys
- Set permissions inside the server
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
chown root:root /root/.ssh /root/.ssh/authorized_keys
- Add secrets to GitHub Actions (.github/workflows/deploy.yml)
SERVER_IP = your server ip
SSH_PRIVATE_KEY = your ssh_genereated private key
NEXT_PUBLIC_SUPABASE_URL="YOUR SUPABASE URL"
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY = "YOUR SUPABASE KEY""