Giter VIP home page Giter VIP logo

aaditya8c / sangnet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sayakongit/sangnet

0.0 0.0 0.0 2.62 MB

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: MIT License

JavaScript 60.20% Python 28.52% CSS 10.84% HTML 0.45%

sangnet's Introduction

sangnet

[![All Contributors](https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square)](#contributors-)

๐Ÿš€ Sangnet | Connecting blood, saving life

This repository contains a project that combines Django, Django REST Framework, React, and Vite 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 Vite, 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 (React with Vite) โš›๏ธ

The frontend is built using React and Vite, providing fast development and hot module replacement for efficient code changes. 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:
     npm install
  3. Start the Vite development server:
     npm run dev
  4. Navigate to http://localhost:5173 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

๐Ÿ’ป

Credits ๐Ÿ‘

sangnet's People

Contributors

sayakongit avatar suchetanchanda avatar soumojit-chakraborty avatar somesh-debnath avatar allcontributors[bot] avatar riddhick avatar debangsudas90 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.