Skip to content

jitendra-rathore-iitm/Vehicle-Parking-web-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

Vehicle-Parking-web-app

A. Backend setup

1. Create and Activate a Virtual Environment

Run the following commands in your backend directory inside the project directory:
# Create a virtual environment
python -m venv venv

# Activate the virtual environment (Windows)
venv\Scripts\activate

You should see (venv) in your terminal indicating that the virtual environment is active.

2. Run the Application

python app.py

Frontend

1. Ensure the following tools are installed on your machine:

You can verify installations using:

node -v
npm -v

2. Install dependencies

Install required packages (inside project folder)

npm install

3. Run the development server

npm run dev

Start Redis Server

Ensure Redis is installed and start the Redis server:

redis-server

To check if Redis is running:

redis-cli ping  # Should return 'PONG'

Start Celery Worker

cd backend  # Ensure you're in the backend directory
celery -A app.celery worker --loglevel=info

Start Celery Beat

celery -A app.celery beat --loglevel=info

Mail-Hog

MailHog

Stopping Services

To stop the services:

sudo service redis-server stop  # Stop Redis or
sudo service redis-server start 
pkill -f "celery"  # Stop Celery worker and beat

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors