GithubHelp home page GithubHelp logo

ravish108coder / tutedude-assignment Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 234 KB

The aim is to generate certificates upon the completion of a student's course and to obtain approval from the administrator before issuing the certificates.

Home Page: https://tutedude-assignment-frontend.vercel.app

JavaScript 99.27% HTML 0.63% CSS 0.10%
bcryptjs cors googleapis jsonwebtoken mongodb-atlas mongoose pdf-lib render-deployment vercel-deployment

tutedude-assignment's Introduction

Certificate Request and Management System

Overview

This project is a MERN (MongoDB, Express.js, React.js, Node.js) stack application designed to facilitate the request, approval, and management of certificates for various courses. It features user authentication, role-based access control, certificate request submission, approval/rejection by admins, certificate generation, and storage on Google Drive.

Features

  • User Authentication: Users can register, log in, and log out securely using bcrypt for password hashing and JWT for token-based authentication.
  • Role-Based Access Control: Admins have access to features such as approving/rejecting certificate requests and viewing/download certificates of all users, while regular users can request certificates and view their own approved certificates.
  • Certificate Request Workflow: Users can submit requests for certificates on completed courses. Admins can approve or reject these requests.
  • Certificate Generation: Certificates are dynamically generated using PDF-lib, with user-specific information such as student name, course name, completion date, and certificate ID.
  • Google Drive Integration: Approved certificates are uploaded to Google Drive using the Google Drive API. Public URLs and thumbnail links are provided for easy access.
  • Responsive Design: The application is designed to be usable on various devices and screen sizes.

Technologies Used

  • Frontend: React.js, Fetch (for HTTP requests), Material-Tailwind (for UI components)
  • Backend: Node.js, Express.js, MongoDB (for data storage), JWT (for authentication), bcrypt (for password hashing)
  • Certificate Generation: pdf-lib
  • Google Drive Integration: Google Drive API
  • Others: OAuth Playground, Console.cloud.google.com

Refrence

  • See .env.sample file in both frontend and backend file for layout of .env file, how it will look like

Getting Started

  1. Clone the repository:

    git clone https://github.com/Ravish108Coder/tutedude-assignment.git
  2. Install dependencies:

    express mongoose cookie-parser pdf-lib googleapis
  3. Set up environment variables:

    • Create a .env file in the backend directory and configure environment variables such as MongoDB connection string, JWT secret, Google Drive API credentials, etc.
  4. Run the application:

    # Start backend server
    cd backend
    npm start
    
    # Start frontend server
    cd ../frontend
    npm start
  5. Open your browser and navigate to http://localhost:5173 to view the application.

Usage

  1. User Registration/Login:

    • Users can register for a new account or log in with their existing credentials.
  2. Certificate Request:

    • Once logged in, users can submit requests for certificates on completed courses by providing necessary details.
  3. Admin Approval:

    • Admins can view pending certificate requests and approve/reject them accordingly.
  4. Certificate Management:

    • Approved certificates are stored securely and can be viewed/downloaded by the user or admins.
  5. Google Drive Integration:

    • Certificates are automatically uploaded to Google Drive upon approval, with public URLs and thumbnail links provided for easy access.

Contributors

License

This project is licensed under the MIT License.

tutedude-assignment's People

Contributors

ravish108coder 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.