This is a simple notes app built with React and Django.
- Python 3.9
- Node.js
- React
- Clone the repository
git clone https://github.com/NirmalNaveen20/django-notes-app.git
- Build the app
docker build -t notes-app .
- Run the app
docker run -d -p 8000:8000 notes-app:latest
Install Nginx reverse proxy to make this application available
sudo apt-get update
sudo apt install nginx
sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
sudo apt install docker-ce
sudo apt install docker-compose -y
sudo apt install openjdk-17-jdk -y
curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo tee /usr/share/keyrings/jenkins-keyring.asc > /dev/null
curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee \ /usr/share/keyrings/jenkins-keyring.asc > /dev/null echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \ https://pkg.jenkins.io/debian-stable binary/ | sudo tee \ /etc/apt/sources.list.d/jenkins.list > /dev/null
sudo apt install jenkins -y
sudo systemctl start jenkins.service
sudo systemctl status jenkins
sudo more /var/lib/jenkins/secrets/initialAdminPassword
http://<ec2-public-ip-address>:8080
http://<ec2-public-ip-address>:8000
docker build -t notes-app .
docker run -d -p 8000:8000 notes-app:latest
sudo usermod -aG docker $USER
sudo usermod -aG docker jenkins
sudo reboot
sh "docker-compose down && docker-compose up -d"
docker build -t notes-app .