Code Monkey home page Code Monkey logo

ffcsthingy2.0's Introduction

FFCSThingy2.0

FFCSThingy2.0 is a course scheduling helper built for FFCS in VIT, Vellore.

The framework is extensible and modular, allowing use with other timetable structures as well.

Built With

Setting Up:

  • Install Node, Mongo
  • Run mongod in a terminal somewhere (Not required if it's running as a service)
  • Google OAuth
  • Backend
    • run npm i
    • create a .env file
    • Add the ID and Secret you got from OAuth in the .env file
    • NODE_GOOGLE_CLIENT_ID=<Your Client ID>
      NODE_GOOGLE_CLIENT_SECRET=<Your Client Secret>
      
    • run node server.js
  • Client
    • run npm i
    • run npm start
    • Login using a Google Account (top-right corner)
  • Database
    • Add an admin scope to your user to be able to populate the details in the DB
    • Open a mongo shell with mongo
    • Choose the appropriate DB with use FFCS
    • Run db.users.update({}, { $set: { scopes: ['user', 'admin'] } })
      • This will add the admin scope to all existing users, so be careful
  • Navigate to:
    • http://localhost:3001/course/addCoursesToDB
    • http://localhost:3001/curriculum/updateCurriculums
    • These will populate the database with pre-existing data
  • You should be good to go!

Features

Frontend

  • Built with Redux and React
  • Uses custom components built on top of React Bootstrap
  • Uses TypeScript
  • Extensible
    • Timetable defines the layout of the timetable and values of cells
    • Clashmap defines the data structure used to check for clashes
      • This can be changed to define which slots clash with each other
      • It forms the base of a lot of interactions of the app
    • Courses defines the type of courses and slots available and utility functions to check types and convert them to standard types
      • The validSlots constant is used to search for courses by slot
    • Theming
      • Themes defines the themes in the app
      • Theme CSS defines the actual theme components
      • Uses SCSS and CSS Modules for a clean structure
      • Theming is based on CSS variables using a mixin

Backend

  • Built with Node and MongoDB
  • Uses Mongoose for stricter MongoDB usage
  • Uses Express for routing

ffcsthingy2.0's People

Contributors

charukuls avatar coursesra avatar ffardeen avatar gsgupta11 avatar namsnath avatar roerohan avatar sudo-nan0-raysk avatar theprogrammerdavid 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.