Giter Site home page Giter Site logo

book-subscription-system's Introduction

book-subscription-system

  • A cloud full-stack web app called book subscription system
  • Main function is that the administrator can manage books, customers can subscribe to books and view their orders
  • I led this group project for COMS E6156, written by 6 people.

How to run

  1. Use datagrip to set up database and schema and change credentials first
  2. Install all dependencies
  3. Run frontend and backend app independently
  • Run sql

    • modify your database url in every database.py in all folders
    • run sql_create_table.sql in datagrip to create schema
  • Update credentials as your own when you want to use google login in local

    • create your own google cloud API credentials because my credentials have expired
    • modify credentials in book-subscription-system/composition/main.py to use your own
      • GOOGLE_CLIENT_ID = "....apps.googleusercontent.com"
      • GOOGLE_CLIENT_SECRET = "GOCSPX-..."
  • Terminal 0:

    • cd frontend
    • npm install package
    • npm start
  • Terminal 1,2,3,4:

    • cd order and cd book and cd user and cd composition
    • pip install -r requirements.txt
    • python main.py
    • or if no main uvicorn main:app --reload (default port is 8000)

About requirements

About implementation

Tools or frameworks

  • fastapi as a backend framework
  • react.js as a frontend framework
  • we use microservices as a software architecture (each folder is a microservice)
  • mysql database (rds in aws)

REST APIs

  • /
  • /login
  • /auth
  • /books
  • /books/{id}
  • /orders
  • /orders/{id}
  • /users
  • /users/{id}
  • /users/search-by-email
  • /users/json
  • ...

About AWS deployment

image

About results

Identity selection interface

image

Administrator management intgerface (view all orders)

image

Add interface (user)

image

Login interface

image

Register interface

image

Customer interface

image

Customer orderlist interface (only view his own order)

image

Detailed other functions

you can download to see them if needed.

book-subscription-system's People

Contributors

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