Python: 3.9.5
Setting Up using venv
git clone https://github.com/mandharet/notes-crud
cd ./notes-crud
# Install virtualenv if not already installed
pip install virtualenv
# Create a virtual environment
python -m venv venv
# Activate the virtual environment
# On Windows
venv\Scripts\activate
# On Unix or MacOS
source venv/bin/activate
pip install -r requirements.txt
This command installs all the required Python packages specified in the requirements.txt
file.
python manage.py makemigrations
python manage.py migrate
This command applies any pending database migrations.
python manage.py createsuperuser
This command creates a superuser account for administrative access to the Django admin interface.
python manage.py runserver
This command starts the development server. You can access the Django development server at http://127.0.0.1:8000/
.
Explore the API using tools like Postman or by visiting the provided Django admin interface at http://127.0.0.1:8000/admin/
(login with superuser credentials).
Setting Up using docker
- TODO:create Dockerfile