https://github.com/asherk7/workout-tracker
Created a workout tracker app using Django and Angular, as well as a CI/CD pipeline with Jenkins
https://github.com/asherk7/workout-tracker
angular django gunicorn-web-server jenkins linux sqlite
Last synced: 10 months ago
JSON representation
Created a workout tracker app using Django and Angular, as well as a CI/CD pipeline with Jenkins
- Host: GitHub
- URL: https://github.com/asherk7/workout-tracker
- Owner: asherk7
- License: mit
- Created: 2023-05-12T05:22:14.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-20T02:38:19.000Z (over 2 years ago)
- Last Synced: 2025-02-11T09:54:08.481Z (12 months ago)
- Topics: angular, django, gunicorn-web-server, jenkins, linux, sqlite
- Language: TypeScript
- Homepage:
- Size: 91.7 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Workout-Tracker
Technologies:      
* Built a website that can be used to track workouts and personal bests, and can also provide good workout splits and exercises for certain muscle groups
* Created the website by connecting the Django backend with the Angular frontend
* Created a CI/CD pipeline using jenkins on a LINUX environment
* Utilized Nginx to increase the perfomance on the webserver
* Used gunicorn for increasing the processing speed and running the pipeline through the gunicorn server
* Utilized gunicorn and nginx for the jenkins pipeline for migrations, file collection, and reverse proxy
* Used an API from https://api-ninjas.com/api/exercises
### Checking the jenkins CI/CD pipeline
1. Install Jenkins
```sh
wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins
```
2. Create the jenkins server
```sh
sudo systemctl daemon-reload
sudo systemctl start jenkins
sudo systemctl start nginx
```
3. Make sure the server is running
```sh
sudo systemctl status jenkins
```
4. Go to http://localhost:8080 and check the pipeline, to turn it off, run
```sh
sudo systemctl stop jenkins
sudo systemctl stop nginx
```
### Installation and Running
1. Clone the repo
```sh
git clone https://github.com/asherk7/Workout-Tracker.git
```
2. Install the requirements
```sh
pip install -r requirements.txt
```
3. Run the server
```sh
#In the Workout-Tracker directory, on a terminal
cd DjangoAPI
python manage.py runserver
#In a different terminal
cd Angular
ng serve
```
4. Open the Angular localhost server