Skip to content

SabbirHosen/django_authentication_module

Repository files navigation

Backend Django Project Only Authentication

This project is a Django-based web application using Django Rest Framework (DRF) for portfolio creation.

Running the Project with Docker

Prerequisites

Steps

  1. Clone the repository:

    git clone https://github.com/SabbirHosen/Portfolio_Django_API.git
    cd Portfolio_Django_API
  2. Build and start the Docker containers:

    docker-compose up --build -d
  3. Open your browser and navigate to http://localhost:8000.

Running the Project with Virtualenv

Prerequisites

Steps

  1. Clone the repository:

    git clone https://github.com/yourusername/yourproject.git
    cd chatinit_backend
  2. Create a virtual environment:

    python -m venv venv
  3. Activate the virtual environment:

    • On Windows:
      venv\Scripts\activate
    • On macOS/Linux:
      source venv/bin/activate
  4. Install the dependencies:

    pip install -r requirements.txt
  5. Apply migrations:

    python manage.py migrate
  6. Run the development server:

    python manage.py runserver
  7. Open your browser and navigate to http://localhost:8000.

Environment Variables

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published