Git Product home page Git Product logo

student-management-backend's Introduction

student-application ๐Ÿง‘โ€๐ŸŽ“

Basic CRUD Application LIVE PREVIEW

Problem Statement- Create a CRUD Operations for a Student Application having the following functionality.

  1. Admin can register the students and circulate the StudentID to respective Student
  2. Admin can update the total marks plus marks in every subject in the system
  3. Students can log-in using the StudentId and in response get the Authentication Token used for further APIs
  4. Using the AuthToken Student can view the detailed results or total marks or percentages only (used query parameters here)
  5. Admin only can delete the student record
### Rest Endpoints-
  1. POST /student/login
    • Students pass their studentID in the form data
    • API should check StudentID exists or not if exists send authToken in response with 200 else return 404

  2. GET /student/results
    • Middleware to verify the authentication token present in the header
    • Return the status with a proper error message if a token is invalid
    • Students can filter the results by passing any subject name, In this case, only specified subject marks would return

  3. GET /me
    • Middleware to verify the authentication token present in the header
    • Student can view their details inserted by Admin like family background, mobile no. course details etc.

  4. PUT /student/update
    • Middleware to verify the authentication token present in the header
    • Students can update their personal details

  5. POST /admin/login
    • Admin pass the AdminId in form data
    • API should check StudentID exists or not if exists send authToken in response with 200 else return 404

  6. POST /admin/addStudent
    • Middleware to verify the authentication token present in the header
    • Insert the new record of the Student and in response return the Student ID

  7. PUT /admin/students/id
    • Middleware to verify the authentication token present in the header
    • Update the student record

  8. DELETE /admin/students/id
    • Middleware to verify the authentication token present in the header
    • Delete the student record

Consideration
  • Use MongoDB as Database
  • Use Middleware to validate token
  • Follow SOLID Principles while writing the code
  • Create the Swagger Doc for all endpoints

student-management-backend's People

Contributors

mohitjain-1 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.