Giter Club home page Giter Club logo

maze's Introduction

#MAZE

###Pre-requisite Packages

  • Node
  • Mongodb
  • NPM
  • Nodemon
  • Postman

Running the Application

Open a terminal and start mongodb using

sudo mongod  

Open another terminal and execute

npm install  
nodemon server.js

All the requests to the application will be logged on to the terminal.

###Restful APIs API requests are called using the url http://localhost:5000/api/ + classname/operation

For example

http://localhost:5000/api/department/5721ebaa589547f60d9e6159

All the CRUD operations are defined for all below classes

  • Department
  • User
  • Professor
  • Course
  • Class Timetable (ctimetable)
  • Professor Timetable (ptimetable)
CRUD Operations:
  • Create

     POST http://localhost:5000/api/department/  
    
  • Update

     PUT http://localhost:5000/api/department/5721ebaa589547f60d9e6159  
    
  • GET

     GET http://localhost:5000/api/department/5721ebaa589547f60d9e6159  
    
  • DELETE

     DELETE http://localhost:5000/api/department/5721ebaa589547f60d9e6159 
    

Class Structures

Department

  • Name
  • Type : String
  • Required : True

User

  • Name

  • Type : String

  • Required : True

  • Username

  • Type : String

  • Required : True

  • Email

  • Type : String

  • Required : True

  • University_ID

  • Type : String

  • Required : True

Directory Structure

api
├── controllers
│   ├── classTimetableController.js
│   ├── courseController.js
│   ├── departmentController.js
│   ├── professorController.js
│   ├── professorTimetableController.js
│   └── userController.js
├── models
│   ├── class-timetables.js
│   ├── courses.js
│   ├── dbs.js
│   ├── departments.js
│   ├── professors.js
│   ├── professor-timetables.js
│   └── users.js
└── routes
    ├── classTimetable.js
    ├── course.js
    ├── department.js
    ├── index.js
    ├── professor.js
    ├── professorTimetable.js
    └── user.js
app_client/
app_server/
└── views

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.