This is a web application for BMCC students to exchange books.
- Frontend:
- Language: HTML, CSS, JavaScript
- Framework: Bootstrap 5
- Backend:
- Language: PHP
- Web Server: Apache
- Database: MySQL
- DevOps:
- Server: Linux (Ubuntu)
- Containerization: Docker
- Reverse Proxy: Nginx
- CI/CD: GitHub Actions
- Install Docker and Docker Compose
Install Docker: https://docs.docker.com/get-docker/
Install Docker Compose: https://docs.docker.com/compose/install/
- Run the following commands:
# Go to the project directory:
$ cd path/to/bookmcc
# Pull the latest images specified in docker-compose.prod.yml:
$ docker-compose -f docker-compose.prod.yml pull
# Run the containers with Docker Compose in detached mode:
$ docker-compose -f docker-compose.prod.yml up -d
Note:
The website now is running on http://localhost:8082
If you didn't create the database and tables, you will see an error message.
To create the database and tables, check out the db/README.md
file for instructions.
- Install Docker and Docker Compose
Install Docker: https://docs.docker.com/get-docker/
Install Docker Compose: https://docs.docker.com/compose/install/
- Run the following commands:
# Build and run the docker container in detached mode
$ docker-compose up -d
# The project now is running on http://localhost
# Stop Docker (stop and remove the docker container)
$ docker-compose down
Note:
The website now is running on http://localhost
If you didn't create the database and tables, you will see an error message.
To create the database and tables, check out the db/README.md
file for instructions.