The directory structure is as follows
.
├── README.md
├── main.py
├── frontend
└── src
├── assets
├── csvs
├── graphs
├── images
└── pdfs
├── components
├── AddShowComp.vue
├── AddTheatreComp.vue
├── AdminComp.vue
├── BookingComp.vue
├── EditProfileComp.vue
├── EditShowComp.vue
├── EditProfileComp.vue
├── HomeComp.vue
├── LoginComp.vue
├── MovieComp.vue
├── MoviesComp.vue
├── NavComp.vue
├── SignupComp.vue
├── TheatreComp.vue
├── TheatresComp.vue
└── UserProfileComp.vue
├── templates
├──BookingReminderTemplate.html
├──CSVMessageTemplate.html
├──LoginReminderTemplate.html
├──ReportMessageTemplate.html
├──ReportTemplate.html
└──WelcomeTemplate.html
├──App.vue
├──main.js
├──routers.js
└──store.js
├── backend
├── __init__.py
├── api.py
├── config.py
├── database.db
├── database.py
├── workers.py
├── tasks.py
└── models.py
├── local_end.sh
├── local_run.sh
├── local_setup.sh
├── local_end.sh
├── Project Report.pdf
├── README.md
└── requirements.txt
- Install the prerequisites from requirements.txt
pip install -r requirements.txt
- Make sure to have nodejs
sudo apt update
sudo apt install nodejs
# Check that the installation was successful by querying node for its version number:
node -v
- Make sure to have node package manager installed to set up Vue CLI
sudo apt install npm
- Install Vue CLI
npm install -g @vue/cli
# You can check you have the right version with this command:
vue --version
# Update the global package
npm update -g @vue/cli
- Create your frontend folder
# Navigate to project folder
vue create frontend
You will be prompted to choose whether to overwrite or merge the project. Choose merge. When prompted to choose the version of Vue, choose Vue2. The content in main.js and App.vue would have been overwritten, so replace their contents as needed.
- Install Vuex, Vue-Routers and Bootstrap
# Navigate to the frontend folder
npm install bootstrap popper query js
npm install vuex@3 --save
npm install vue-router@2
- Install MailHog
sudo apt-get -y install golang-go
go get github.com/mailhog/MailHog
-
Navigate back to the root folder of your project and run the following scripts in separate terminals in the same order
bash local_setup.sh
bash local_workers.sh
bash local_run.sh
- Once you are done using the app, run the following script to kill any existing processes
bash local_end.sh
- You will need a Linux environment to run the app, because celery uses threads for its work. If you have Windows, consider installing WSL or set up a Docker Container.