Giter Site home page Giter Site logo

teacher-student's Introduction

Teacher student registration API

  1. Create a database CREATE DATABASE <dbname>;
  2. update .env file (we should .gitignore this and upload a .env.example but...)
  3. Optionally, seed the database with a little data
  4. npm install
  5. npm run start or npm run watch for dev mode
  6. npm run test or npm run test:dev for unit test dev mode

these are my npm global packages, if you need

garylee@iMac [~] ]$ npm list -g --depth=0
/usr/local/lib
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

Sample .env config

PORT=80
SQLUSER=root
SQLPASSWORD=P@ssw0rd!
SQLHOST=localhost
SQLDATABASENAME=<dbname>

how to run seeders (optional)

node_modules/.bin/sequelize db:seed:all

TODO

  • modularize routes
  • catch all routes
  • nodemon
  • prettier rc
  • eslint
  • env file for ports
  • jest test setup
  • user story 1 POST /api/register
  • user story 2 GET /api/commonstudents
  • user story 3 POST /api/suspend
  • user story 4 POST /api/retrievefornotifications

-- create database mba; -- if you use new auth protocol, you might get 'please upgrade client warning', do this till mysql2 driver supports the new protocol

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'P@ssw0rd!'

teacher-student's People

Contributors

murugaratham avatar

Watchers

 avatar James Cloos 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.