Skip to content

Sangnet swiftly connects compatible blood donors with recipients, prioritizing privacy and security. We simplify the process, enabling donors to help during emergencies and medical procedures, ultimately saving lives in our communities.

License

Notifications You must be signed in to change notification settings

XronTrix10/sangnet

 
 

Repository files navigation

sangnet

All Contributors

🚀 Sangnet | Connecting blood, saving life

This repository contains a project that combines Django, Django REST Framework, Next.js to create a web application with a robust backend and a dynamic frontend.

Project Structure

The project is organized into two main folders:

  • backend: Contains the Django application responsible for handling API requests and database interactions.
  • frontend: Contains the React application built using Next.js, providing a modern and efficient development experience for the frontend.

Backend (Django) 📦

The backend is built using Django and Django REST Framework, providing a RESTful API to communicate with the frontend. The key features of the backend include:

  • API endpoints to manage various resources, such as users, data models, and more.
  • Integration with a database (e.g., PostgreSQL, SQLite) to store and retrieve data.
  • Authentication and authorization mechanisms to secure API endpoints.
  • Custom views, serializers, and models to tailor the API to your project's needs.

Setting Up the Backend 🛠️

  1. Navigate to the backend folder:

    cd backend
  2. Create a Python Virtual Environment (Optional, but recommended):

    Create and activate a virtual environment to isolate project dependencies.

    On macOS and Linux:

    python3 -m venv venv
    source venv/bin/activate
    

    On Windows:

    pip install virtualenv
    virtualenv venv
    ./venv/Scripts/Activate.ps1
    
  3. Install the required Python packages:

    pip install -r requirements.txt
  4. Run database migrations:

     python manage.py makemigrations
     python manage.py migrate
  5. Start the Django development server:

     python manage.py runserver
  6. Use http://localhost:8000 as the API base URL.

Frontend Next.js 14 ▲

The frontend is built using Next Js. The frontend offers a user-friendly interface to interact with the API provided by the Django backend.

Setting Up the Frontend 🛠️

  1. Navigate to the frontend folder:
    cd frontend
  2. Install the required Node packages:
     yarn install | npm install ( yarn recommended )
  3. Start the development server:
     yarn dev | npm run dev ( yarn recommended )
  4. Navigate to http://localhost:3000 to view the frontend.

Postman API Public Workspace 📚

For detailed information about the available API endpoints and their usage, refer to the Post API Documentation.

Contributors

Sayak Saha
Sayak Saha

💻
Riddhick Dalal
Riddhick Dalal

💻
Shiwangi Kumari
Shiwangi Kumari

🚇
Stefan Anevski
Stefan Anevski

📖

Credits 👏

About

Sangnet swiftly connects compatible blood donors with recipients, prioritizing privacy and security. We simplify the process, enabling donors to help during emergencies and medical procedures, ultimately saving lives in our communities.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 72.3%
  • Python 26.5%
  • CSS 1.1%
  • JavaScript 0.1%