https://github.com/timtech4u/devops-project-app
This is a simple counter application with a Python/Flask backend and an HTML/CSS/JavaScript frontend
https://github.com/timtech4u/devops-project-app
Last synced: over 1 year ago
JSON representation
This is a simple counter application with a Python/Flask backend and an HTML/CSS/JavaScript frontend
- Host: GitHub
- URL: https://github.com/timtech4u/devops-project-app
- Owner: Timtech4u
- Created: 2024-07-23T12:20:25.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-07T15:53:17.000Z (almost 2 years ago)
- Last Synced: 2025-01-10T17:15:09.725Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 248 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Counter App
This is a simple counter application with a Python/Flask backend and an HTML/CSS/JavaScript frontend.
## Project Structure
- `backend/`: Contains the Flask backend application.
- `frontend/`: Contains the HTML/CSS/JavaScript frontend application.
- `Jenkinsfile`: Jenkins pipeline configuration.
## Running the Application
### Using Docker
1. Build and run the backend:
```sh
cd backend
docker build -t counter-backend .
docker run -d -p 5555:5555 counter-backend
```
2. Build and run the frontend:
```sh
cd frontend
docker build -t counter-frontend .
docker run -d -p 80:80 counter-frontend
```
3. Open your browser and go to `http://localhost`.
### Using Jenkins
1. Create a new Jenkins pipeline job.
2. Configure the pipeline to use the `Jenkinsfile` from this repository.
3. Run the pipeline to build both backend and frontend Docker images.