GithubHelp home page GithubHelp logo

euler1729 / cseduweb Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 27.21 MB

Frontend: https://github.com/Dipto-shaha/cseduwebclient.git

Home Page: https://cse.du.ac.bd

Python 32.87% PowerShell 3.17% Shell 1.11% JavaScript 62.71% HTML 0.12% CSS 0.02%

cseduweb's Introduction

CSEDU WebServer

Overview

This project is a web application built with FastAPI that provides a set of RESTful APIs for managing users, news, events, research, students, teachers, staff and alumni. It is designed to be easily deployable, manageable.

Requirements

  • Python 3.8+
  • FastAPI
  • MongoDB

Installation and Running the Server

For macOS

  1. Clone the repository:
    git clone <repository-url>
    cd <repository-directory>/backend
  2. Create a virtual environment and activate it:
python3 -m venv .venv
source .venv/bin/activate
  1. Install the dependencies:
pip install -r requirements.txt
  1. Run the server:
python3 app/main.py

For Ubuntu

  1. Clone the repository:
git clone <repository-url>
cd <repository-directory>/backend
  1. Create a virtual environment and activate it:
python3 -m venv .venv
source .venv/bin/activate
  1. Install the dependencies:
pip install -r requirements.txt
  1. Run the server:
python3 app/main.py

API Summary

Certainly! Here's the markdown table with serial numbers added:

S.No Endpoint Method Tags Summary Request Body Schema
1 /user/add POST User Add User Data UserSchema
2 /user/all GET User Get Users N/A
3 /user/{user_id} GET User Get User N/A
4 /user/update/{user_id} PUT User Update User Data UserSchema
5 /user/delete/{user_id} DELETE User Delete User Data N/A
6 /auth/login POST Auth Login User UserLogin
7 /auth/reset-password-init POST Auth Reset Password Init ResetInit
8 /auth/reset-password-confirm POST Auth Reset Password Confirm ResetPassword
9 /news/update/{news_id} PUT News Update News UpdateNewsBaseModel
10 /news/add POST News Create News NewsBaseModel
11 /news/all GET News Get News N/A
12 /news/{news_id} GET News Get News Id N/A
13 /event/all GET Event Get Event N/A
14 /event/add POST Event Create Event EventsBaseModel
15 /event/{event_id} GET Event Get Event Id N/A
16 /event/update/{event_id} PUT Event Update Event UpdateEventsBaseModel
17 /event/register/private/{event_id} POST Event Register Event UserFormModel
18 /event/register/update/{event_id}/{user_id} PUT Event Update Registration UpdateUserFormModel
19 /event/register/list/{event_id} GET Event Get Registration List N/A
20 /event/delete/{event_id} DELETE Event Delete Event N/A
21 /research/update/{research_id} PUT Research Update Research UpdateResearchBaseModel
22 /research/add POST Research Create Research ResearchBaseModel
23 /research/all GET Research Get All Research N/A
24 /research/{research_id} GET Research Get Research Id N/A
25 /research/delete/{research_id} DELETE Research Delete One Research N/A
26 /research/delete-all DELETE Research Delete All Research N/A
27 /alumni/add POST Alumni Add Alumni Data AlumniSchema
28 /alumni/all GET Alumni Get Alumni N/A
29 /alumni/{alumni_id} GET Alumni Get Alumni Id N/A
30 /alumni/update/{alumni_id} PUT Alumni Update Alumni Data UpdateAlumniSchema
31 /alumni/delete/{alumni_id} DELETE Alumni Delete One Alumni N/A
32 /alumni/delete-all DELETE Alumni Delete All Alumni N/A
33 /student/add POST Student Add Student Data StudentSchema
34 /student/all GET Student Get Students N/A
35 /student/{student_id} GET Student Get Student N/A
36 /student/update/{student_id} PUT Student Update Student Data UpdateStudentSchema
37 /student/delete/{student_id} DELETE Student Delete One Student N/A
38 /student/delete-all DELETE Student Delete All Students N/A
39 /teacher/add POST Teacher Add Teacher Data TeacherUserSchema
40 /teacher/all GET Teacher Get Teachers N/A
41 /teacher/{teacher_id} GET Teacher Get Teacher N/A
42 /teacher/update/{teacher_id} PUT Teacher Update Teacher Data UpdateTeacherUserSchema
43 /teacher/delete/{teacher_id} DELETE Teacher Delete One Teacher N/A
44 /teacher/delete-all DELETE Teacher Delete All Teachers N/A
45 /stats/all GET Stats Stats All N/A
46 /message/add POST Message Create Message MessageBaseModel
47 /message/all GET Message Get Messages N/A
48 /message/{id} GET Message Get Message N/A
49 /staff/add POST Staff Add Staff Data StaffUserSchema
50 /staff/all GET Staff Get Staffs N/A
51 /staff/{staff_id} GET Staff Get Staff N/A
52 /staff/update/{staff_id} PUT Staff Update Staff Data UpdateStaffUserSchema
53 /staff/delete/{staff_id} DELETE Staff Delete One Staff N/A
54 /staff/delete-all DELETE Staff Delete All Staffs N/A

Contributing

To contribute to this project, please fork the repository, create a new branch, and submit a pull request.

cseduweb's People

Contributors

euler1729 avatar abdullaharean avatar dipto-shaha avatar atikur-rahman26 avatar

Stargazers

 avatar

Watchers

 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.