Skip to content

TrackingJS/TrackingJS

Repository files navigation

Build Status

TrackingJS

Table of Contents

  1. Team
  2. Usage
  3. Development
  4. Contributing
  5. Test Data
  6. DB Schema
  7. Server API

Team

to be determined

Development

Installing Dependencies

From within the root directory:

npm install

This will handle both client and server-side dependencies as outlined in package.json.

after installation has completed

npm start

then navigate to localhost:3001/

Usage

to be determnied

Contributing

See CONTRIBUTING.md for contribution guidelines. Make sure you have Node installed, and then from within the root directory:

Internal APIs

On any project there are many internal APIs. For ease of reference, for both the development team and future contributers, they are exhaustively documented here.

Test

npm test
npm test:watch

TODO// Additionally, this repo contains a dummy-data file that will help you test feel and look. To add records to the database just run:

./dummy-data.sh

DB Schema

There is one types of objects stored in the database so far: students. To minimize http requests on the server, when retrieved, all references to other objects will be fully populated with complete objects, not just is numbers. The schema are as follows:

####User

{
name       : ... //String
email      : ... //String
lesson     : ... //String
level      : ... //String
interview  : ... //String
decision   : ... //String
}

Server API

The server uses a stateless RESTful API for all database access. It supports four HTTP verbs: GET for retrieving data, POST for creating new objects, PUT for updating existing objects, and DELETE for removing objects. NOTE: All POST, PUT, and DELETE routes require an authorization token, with the exception of POST /api/signup.

The Routes

Most routes follow a /api/:data_type/:data_identifier pattern. Note that when an aspect of a route is prefaced with a colon : it refers to a variable. Do not actually write down a colon in any api calls. Additionally, ALL of the following routes must be prefaced with /api.

GET     api/students                // Get list of students
POST    api/student                 // Add new student
DELETE  api/student/:id             // Delete the student

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published