Giter Site home page Giter Site logo

college_database_group's Introduction

Installation

To install this project, follow these steps:

  1. Clone this repository to your local machine by running
git clone https://github.com/kzaiets/college_database_group.git
  1. Navigate to the root directory of the project in your terminal.
  2. Install all the required dependencies by running
npm install

Using the Server

Set up .env document

Create a .env file in the same place as the server.js file and use the below template to replace with login details for your database server. The port and host provided will be the port you want to run the server on.

DATABASE_HOST = "localhost"
DATABASE_USER = "root"
DATABASE_PASSWORD = "password"
DATABASE = "mydb"
PORT = 3000

Running the server

If you want to start the server, navigate to the folder containing the files and run

npm start

Testing the application via Postman

API endpoints

API for student enrolling to course

/enrol/:userid/:courseid

API for students to view available courses

/courses/:userid

API for admins to make courses available/unavailable

course_available should be "enable" or "disable"

/courseavail/:userid/:courseid/:course_available

API for admins assigning teachers to courses

/assignteacher/:userid/:courseid/:teacherid

API for teachers to fail or pass a student

markgiven should be "pass" or "fail"

/mark/:userid/:courseid/:studentid/:markgiven

college_database_group's People

Contributors

kzaiets avatar g-m-desouza avatar ct673 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.