- Python
- NodeJS
- Docker + docker-compose (optional)
- Install required npm packages with the following commands:
cd frontend
npm install
- Install required python packages with the following command:
pip install -r backend/requirements.txt
This project is deployed on an AWS EC2 LightSail instance running Amazon Linux.
- Set up SSH keys
ssh-keygen
cat .ssh/id_rsa.pub # Copy and add to GitHub
echo "your-pub-ssh-key" >> .ssh/authorized_keys # give permission for SSH (optional)
- Initial installation of git, python (optional), and docker/docker-compose
sudo yum install git python docker
sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo systemctl start docker.service # start docker system service
sudo systemctl enable docker.service # enable docker to start on reboot
sudo usermod -aG docker $USER # give docker 'sudo' privileges
- Clone project
git clone ...
- Execute project
cd ...
docker-compose up --build -d