Git Product home page Git Product logo

onlinelibrary's Introduction

WestCoastEducation

A online library

This is a full-stack project that implements a library application using ASP.NET Core and React.

The backend is built with .NET Core and follows a layered architecture that comprises data, business,and presentation layers. It communicates with two SQL databases, one for identity and the other for book information. It utilizes a Firestore database to handle user-generated content such as comments on the website. The backend supports authentication for both frontend using cookies and direct API communication using JWT.

the frontend offers Google sign-in functionality and implements signalr It uses the Mantine component library, React-router-guards, and Axios.

Alt Text WestCoastEdu

API Documentation

AUTH

/api/auth/register-admin

  • Method: POST
  • Description: Register a new admin user.
  • Authorization: User must have Admin role.
  • Tags: Authentication

/api/auth/revoke-all

  • Method: POST
  • Description: Revoke all tokens for all users.
  • Authorization: User must have Admin role.
  • Tags: Authentication

/api/auth/revoke/{username}

  • Method: POST
  • Description: Revoke all tokens for a specific user.
  • Parameters:
    • username: The username of the user whose tokens are to be revoked.
  • Authorization: User must have Admin role.
  • Tags: Authentication

/api/auth/refresh-token

  • Method: POST
  • Description: Refresh authentication token.
  • Tags: Authentication

/api/auth/logout

  • Method: GET
  • Description: Logout the current user.
  • Authorization: Required
  • Tags: Authentication

/api/auth/googleexternallogin

  • Method: GET
  • Description: Perform login via Google.
  • Tags: Authentication

/api/auth/login

  • Method: GET
  • Description: Login to the system for using API User.
  • Tags: Authentication

/api/auth/me

  • Method: GET
  • Description: Get current user details.
  • Authorization: Required
  • Tags: Authentication

BOOKS

/api/book:

  • Method: GET
  • Description: Get all books.
  • Tags: Books

/api/book/{id}:

  • Method: GET
  • Description: Get a specific book by ID.
  • Parameters:
    • id: The unique identifier of the book.
  • Tags: Books

onlinelibrary's People

Contributors

johngrat avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

onlinelibrary's Issues

Hi from the author of Mantine DataTable!

Hey, @JohnGrat!

This is @icflorescu, the author of Mantine DataTable open-source component.
I've recently discovered that you are using Mantine DataTable in this repo.
Would you care to share with me a bit of feedback regarding your experience with my component?
I'm trying to better understand the users' stories and experience in order to see how/if I could further improve the project.
Apologies for approaching you like this.

Thanks in advance for your feedback and for using Mantine DataTable!

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.