Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 1.55 KB

README.md

File metadata and controls

45 lines (34 loc) · 1.55 KB

UNICEF Office of Innovation Intern Assessment

Go as far as you can in the allotted time.

  1. Fork the repository
  2. Clone your forked repository
  3. npm install && cd client; npm install
  4. Setup and configure a database as per the configuration included in the repo
  5. Create a new branch fullstack-assesment
  6. To start the server: node index.js
  7. To start the client: cd client; npm run start

Front End

  1. Create a login/registration form.
  2. Register a new user.
  3. Login as the user.
    1. Display and style the server status if the user successfully logs in.
    2. Display an error page if unsuccessful.

Note the usage of 'proxy' in the client package.json

Back End

  1. Add a new route to the API for users.
    1. Look in /lib/api
    2. Complete PUT, POST, and GET endpoints
  2. Complete the logRequest middleware
    1. Log each request path.
    2. Log the user’s ip address
  3. Add a new property to the application
    1. startTime - timestamp when the server started
  4. Modify the getStatus function
    1. Add uptime - amount of time the server has been running
    2. Add the running applications current configuration

Database

  1. Create the new database model in /lib/db/models
    1. Decide on your own, sensible, properties.
  2. Wire your model into the db and application.

Submission

Once you complete the assignment, please make your repository private and invite mehranhydary and tenthirtyone to the repository so that your solution can be reviewed by UNICEF.