Skip to content

istrau2/person-records-service

Repository files navigation

person-records-service

Getting started

Before you start, make sure you have a recent version of NodeJS environment >=6.0.

From the project folder, execute the following commands:

npm install
cd person-records-service
npm run start

The server should now be running on localhost:1337

Running the unit tests

Then run the tests:

npm run test

Understanding the project

This is a sailsJS webserver. Most of the code is boilerplate sails code. Please note the following:

  1. config/routes - this sets up the routing (see http://sailsjs.org/documentation/concepts/routes for more info.)
  2. api/controllers contains the RecordController referenced in the routes.
  3. api/services contains most of the business logic.
  4. api/hooks contains a hook that seeds the db on startup.
  5. config/connections sets the db as sails-disk (which is available out of the box)
  6. api/spec contains the unit tests.
  7. api/mocks contains any mocks (used in testing).
  8. aurelia-dependency-injection is used as a DI framework. See app.js for the DI setup.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published