A SaaS product for P2P service exchange and billing using Stripe payments.
This project is built using Cookiecutter Django.
Run:
docker compose up
Your application will start on localhost:8000
.
- AWS account
- AWS instance with minimum 2 GiB memory
- A custom domain name
- Launch the instance
- Configure the hosted zones from Route 53
- Configure the inbound rules (port 8000)
- Login to the server as the root user
- Follow the instructions step by step from here
- Run:
sudo apt install docker-ce docker-compose git
- Add your deploy keys from GitHub to the server
- Follow the instructions from GitHub
- Clone the GitHub repository to the server using SSH
- Create a new directory named
.production
- Run:
vim /root/Billing-System/.envs/.production/.django
From your local codebase, copy all the content of the file /.envs/.production/.django
and paste it in the newly created file using vim.
- Run:
vim /root/Billing-System/.envs/.production/.postgres
From your local codebase, copy all the content of the file /.envs/.production/.postgres
and paste it in the newly created file using vim.
- Run:
cd /root/Billing-System && docker-compose -f production.yml down && git pull && docker-compose -f production.yml build && docker-compose -f production.yml run --rm django python manage.py migrate && docker-compose -f production.yml up -d
You can now visit your application on the configured domain name.
If the response on the terminal looks like the n the resources provisioned to the instance are not enough, and you will need to upgrade the memory size to at least 2 GiB (works fine).