Welcome to my Cinema Booking System! ๐ This project is a web application built using Django and Tastypie, providing a RESTful API for managing users, profiles, rooms, sessions, and seats for a cinema booking system.
This project uses Python 2.7, Django 1.11.29, and Tastypie 0.14.1 because these were requirements for my current back-end job. Docker was used for local development since Python 2 is no longer shipped or supported. ๐ณ
If you are somehow running this on your host machine, you may want to use a virtualenv. ๐
- ๐ค User and Profile Management
- ๐๏ธ Room and Session Management
- ๐๏ธ Seat Reservation System
- ๐ RESTful API using Tastypie
- Python 2.7
- Docker (optional)
-
Clone the repository:
git clone https://github.com/yourusername/userexample.git cd userexample
-
Install the required Python packages:
pip install -r requirements.txt
-
Make sure you have the required Python packages installed.
-
Apply the migrations:
python manage.py migrate
-
Start the development server:
python manage.py runserver
-
Access the application at http://127.0.0.1:8000/ ๐. (Although there is nothing to see there lol ๐ )
-
Build the Docker image:
docker build -f Dockerfile.dev -t python2-tastypie:dev .
-
Run the Docker container:
docker run -p 8000:8000 -v .:/workspace -dt python2-tastypie:dev
Here we forward the port 8000 to the container, mount the current working directory to the container and make it run in the background.
-
Attach your IDE to the running container (you may use VSCode or any other IDE). There is a plugin for Docker that allows you to attach to a running container while using VSCode.
-
Open your terminal inside your IDE or using docker exec:
docker exec -it python2 /bin/sh
-
Apply the migrations:
python manage.py migrate
-
Start the development server:
python manage.py runserver
-
Access the application at http://127.0.0.1:8000/ ๐.
Run the tests using Django's test framework:
python manage.py test
We welcome contributions! ๐ Please fork the repository and submit a pull request with your changes.
This project is licensed under the MIT License.
Feel free to explore, modify, and enhance the User Example Project. If you encounter any issues or have any questions, don't hesitate to reach out!
Happy coding! ๐ปโจ