GithubHelp home page GithubHelp logo

ferrielmelarpis / projectheartland Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jkcdarunday/projectheartland

0.0 1.0 0.0 13.11 MB

An Online Student Information System for the University of the Philippines Los Baños

TeX 48.23% HTML 11.31% Rust 11.02% JavaScript 15.07% Lua 10.13% CSS 1.94% Perl 1.74% Shell 0.56%

projectheartland's Introduction

ProjectHeartland

Flash Crowd Online Student Enrollment System

Authors

Requirements

Installation

$ curl -sf https://raw.githubusercontent.com/brson/multirust/master/blastoff.sh | sh
$ multirust set-default stable
$ multirust update

Build and Run

$ #if no redis instance, run a redis instance
$ #for debian:
$ sudo service redis start
$ #for systemd:
$ sudo systemctl start redis
$ ulimit -n 4096
$ cargo run

API Specification

/student

Contains functions that are related to the student profile and schedule.

/student/profile (TODO)

Returns student profile information in the structure:

{
	"result":0,
	"data":{
		"first_name":,
		"middle_name":,
		"last_name":,
		"student_number":,
		"curriculum":,
		"standing":,
		"total_units":,
		"available_units":
	}
}

GET /student/schedule?session=[SID11]

Returns the current schedule of the student in the structure:

{
	"result":0,
	"data":{
		"schedule":{"CMSC 161":"UV-1", "CMSC 124":"ST2", "CMSC 128":"AB1", ...}
  }
}

PUT /student/schedule?session=[SID]&subject=[SUBJECT]&section=[SECTION]

Enlists student to a section:

{
	"result":0
}

DELETE /student/schedule/?session=[SID]&subject=[SUBJECT]&section=[SECTION]

Removes student from a section:

{
	"result":0
}

GET /student/waitlist/?session=[SID]&subject=[SUBJECT]&section=[SECTION]

Returns the position of a student in the waitlist:

{
	"result":3
}

PUT /student/waitlist/?session=[SID]&subject=[SUBJECT]&section=[SECTION]

Waitlists student to a section:

{
	"result":0
}

DELETE /student/waitlist/?session=[SID]&subject=[SUBJECT]&section=[SECTION]

Removes a student from the waitlist of a section:

{
	"result":0
}

/student/finalize (TODO)

Finalizes the schedule of a student:

{
	"result":0
}

/auth

Contains functions that manages the session.

POST /auth/login?username=&password=

Tries to authenticate with given credentials and returns session key

{
	"result":0,
	"key": "YTk0ODkwNGYyZjBmNDc5YjhmODE5NzY5NGIzMDE"  
}

DELETE /auth/logout?session=?

Terminates session of given session key

{
	"result":0
}

/subjects

Contains functions that deal with subjects

GET /subjects/slots?subject=[SUBJECT]&sections=[SECTION],[SECTION],[SECTION]...

Returns the number of slots left for the given sections:

{
	"result":0,
	"data": {"UV": 4, "UV-1L": 4}
}

PUT /subjects/create?session=[SID]&subject=[SUBJECT]&section=[SECTION]&max_slots=10&{lecture=A}

Creates a new subject (ADMIN):

{
	"result":4,
}

You can check out more specific API functions inside the main.rs

projectheartland's People

Contributors

ferrielmelarpis avatar jkcdarunday 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.