Skip to content

soltex1/To-Do-App---Elecctro-Challenge

Repository files navigation

To-Do-App---Elecctro-Challenge

DEMO: https://serene-chamber-89901.herokuapp.com/

Brief Description:

Simple To-Do application using Node, Hapi.js framework (https://hapijs.com), MongoDB and Angular (MHAN?). There is a very simple hard coded login based on hapi-auth-cookie (https://github.com/hapijs/hapi-auth-cookie).

Dependencies and Versions:

MongoDB: 3.4.4

Angular/CLI: 1.0.3

NodeJS: 7.10.0

HapiJS: 4.2.0

For more information about dependencies, please see the file package.json.

API End-Points

GET /todos?filter=<STATE>&orderBy=<FIELD>
PUT /todos
PATCH /todo/{id}
DELETE /todo/{id}

Auto-Generated server documentation using lout plugin (https://github.com/hapijs/lout):

Route Documentation

You can import the file postman_config.json to Postman (https://www.getpostman.com/) or Run in Postman

Ĺogin Details

account 01) username: john and password: password; account 02) username: john2 and password: password;

How To Run:

node server or NODE_ENV 'production' node server

NODE_ENV 'production' will use a different database configuration instead of the local one, you must set the environment variables.

For more information about this application please see the file Server_Challenge.pdf.

Releases

No releases published

Packages

No packages published