This project is a Django-based web application using Django Rest Framework (DRF) for portfolio creation.
-
Clone the repository:
git clone https://github.com/SabbirHosen/Portfolio_Django_API.git cd Portfolio_Django_API
-
Build and start the Docker containers:
docker-compose up --build -d
-
Open your browser and navigate to
http://localhost:8000
.
-
Clone the repository:
git clone https://github.com/yourusername/yourproject.git cd chatinit_backend
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
-
Install the dependencies:
pip install -r requirements.txt
-
Apply migrations:
python manage.py migrate
-
Run the development server:
python manage.py runserver
-
Open your browser and navigate to
http://localhost:8000
.
Ensure you have a .env
file in the root of your project with the following content:
DATABASE_NAME=myproject
DATABASE_USER=myprojectuser
DATABASE_PASSWORD=myprojectpassword
DATABASE_HOST=db
DATABASE_PORT=5432
SECRET_KEY=your_secret_key
DEBUG=True
#Email configuration variables
EMAIL_HOST=
EMAIL_PORT=
EMAIL_USE_TLS=
EMAIL_HOST_USER=
EMAIL_HOST_PASSWORD=
DEFAULT_FROM_EMAIL=
By following these instructions, you will have a fully functional Django project that can be run using Docker for containerized deployment or using a virtual environment for local development.