GithubHelp home page GithubHelp logo

princetoncs-uca / labqueuev2 Goto Github PK

View Code? Open in Web Editor NEW
0.0 4.0 0.0 107 KB

This project was to be a replacement for Alex Daifotis '14's LabQueueV1, but it was never launched and Diana Liao '17 graduated before completion.

JavaScript 95.21% HTML 4.59% Shell 0.18% CSS 0.03%

labqueuev2's Introduction

Directory Structure

/api - all relevant server-side code for endpoint logic
    /v1 - top-level files are endpoint definitions
        /controllers - contains functions called at each endpoint
        /middleware - contains route middleware (functions resolved before calling the main logic of the endpoint)
        /accessors - contains functions that access database. 
    v1.js - packages up the serverside code to be included in the app
/app - contains other application code besides code for the api / endpoints
    /client - a React mess. `index.jsx` is the main entry point
    /server - other serverside code.
        /views - views (using nunjucks) that are rendered server side.

/config - contains application (serverside) configuration, including which view engines, passport setup, and database options
/enums - contains enum definitions used by the rest of the app. JS doesn't support enums, so it's a bit hacky.
/models - database models for Sequelize
/public - static files. Autogenerated, so don't edit!
/utils - one-off functions that are useful in various places
/vendor - 3rd party libraries that either weren't on npm or had to be modified

Main entry point into app is at index.js. Please also take a look at frontend.md and api.md for some design notes.

Testing

There is now a test suite that can be run with the following commands:

npm install
./test.sh

There aren't many tests right now. They are currently used to ensure that nothing breaks during development.

Other Notes

General structure of how the /api folder works is as follows:

  • User hits an endpoint, which is defined in the top-level files in the /v1 folder.
  • Any middleware for that endpoint is called
  • The endpoint function is called (which is found in the /controllers folder)
    • A controller may call functions from the repository to manipulate the database

labqueuev2's People

Contributors

dmliao avatar

Watchers

 avatar Lance Goodridge avatar Kevin Finch avatar Lilly Meng 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.