nqh-d3v / t-courses--api

APIs for T-Courses project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

    ____________
   /\____    ___\  ______   ________   ___   ___   ____ _  __________   _________   _________
   \/___/\   \__/ /\   __\ /\   __  \ /\  \ /\  \ /\   '_\/\    _____\ /\   _____\ /\    ____\
        \ \   \   \ \  \_/_\ \  \/\  \\ \  \\_\  \\ \   \/\ \_____.   \\ \   _____\\ \_____.  \
         \ \___\   \ \_____\\ \_______\\ \________\\ \___\ \ \_________\\ \________\\ \________\
          \/___/    \/_____/ \/_______/ \/________/ \/___/  \/_________/ \/________/ \/________/

This project was started at 22/01/2021, i don't know when it finish but i will try to finish it with best result!

This project is a system with some technology is ReactJS, ReactNative (for android and ios in the future), NodeJS (for backend), MySQL (for database).

This repo is backend code ( i will use expressJS, it is a framework for NodeJS in backend ).


Setup something...

You need to setup something to run this project

Database

  1. Create a schema with name is 'your_database_name' in Workbench (8.0 for now). ( If you wasn't install it, install it here).
  2. In workspace, create a file with name '.env', and paste code below to it.
      DB_NAME=your_database_name
      DB_HOST=127.0.0.1
      DB_PORT=3306
      DB_USR=root
      DB_PWD=password
    
      APP_PORT=3000
      ADMIN_USR=admin
      ADMIN_PWD=12345678
    
      API_URL=localhost:3000/api/v1
    
      JWT_SECRET=your_jwt_secret
      TOKEN_SECRET=your_jwt_token_secret
    
      COURSE_KEY_SECRET=your_key_secret_for_course
      COURSE_IV_SECRET=your_iv_secret_for_course
    
      EMAIL_HST=your_email_hosting_domain
      EMAIL_PRT=your_email_hosting_port
      EMAIL_USR=your_email_hosting_username
      EMAIL_PWD=your_email_hosting_password
    
    By default, your app will be run on port '3000' and connect to database with name is 'your_database_name'.

Groups:

List of modules for this project

  • Auth ( for authenticate anyone ).
  • Account ( include admin, mentor, support and member ).
  • Courses ( will be created by admin of system, mentor or anyone with role is admin ).
  • Cart ( for buy courses and payment ).

Models


About

APIs for T-Courses project

License:Apache License 2.0


Languages

Language:JavaScript 99.7%Language:Dockerfile 0.3%