Git Product home page Git Product logo

educational-ecommerce's Introduction

API Educational E-commerce

The following is an Ed-Tech API it is Built using Node and Expres and uses the following Tools and Technologies

Tools and Technologies

  • Node
  • Express
  • MongoDB
  • Mongoose
  • JSON Web Tokens
  • bcrypt
  • Cookies
  • Postman
  • nodemailer
  • ratelimt
  • ratelimit mongo
  • winston
  • cors

modules

The server has the following features implemented

Login/Registeration and User Profiling

user can register, login, Edit or delete their account the passwords are encrypted at time of creation and stored in the database. The authentication is done through the help of JSON web Tokens which are stored and passed through Cookies. the routes that are allowed to be used by the current users role are only accesed. user once they register recieve a email with 4 digit code which they enter and verify their account they can also ask for code to be re sent to them

Wallet and transactions

user that has logged in can make transactions to their wallet they a topup withdraw and use the amount in the wallet to make purchases the user can the user can view their wallet and the transactions that they have made through the API. the API checks valid card credentials and then make the request.

enrolments

the Student can make request of enrolments to the owner of the course at the time of enrollment a balance is deducted from the wallet of the Student. the request is sent to the owner of the course who can accept or reject the request of the student if the owner of the course rejects the request of the student then the amount that the student paid is refunded and if the teacher accepts the request of the student then the amount that the student paid is credited to the wallet of the owner of the course.

How to Run

  • set the required environment variables field .env file contains following variables
    • PORT
    • mongoDB
    • secret_key
  • Install all the dependencies in package.json npm install
  • Run the API by either by node app.js or Nodemon using npm start

educational-ecommerce's People

Contributors

ahmedali9991 avatar

Stargazers

 avatar Wakar Yasin 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.