pet-heroes / pet-hero

An open-source project aimed to bring pet lovers together with animals who need loving homes.
MIT License
4 stars 6 forks source link

Server Infrastructure #16

Closed tophergates closed 6 years ago

tophergates commented 6 years ago

Issue Title

Server Infrastructure

Issue Number

15

Issue Description

Add infrastructure to the server for models, controllers, routes, and tests.

Summary of solution:

  1. Mocha and Supertest packages for tests.
  2. Routes directory with index route and /api route
  3. Controllers directory
  4. Models directory with a basic User model
  5. Config directory with development and production configurations

Can this issue be closed?

No. It would be better to add prod.config.js to the .gitignore file to improve security and avoid accidentally pushing API keys.

tophergates commented 6 years ago

Since these updates were relatively minor, I am going to merge these changes with the plan to improve upon ensuring secrets are not committed once we get to the stage of needing to store sensitive configuration details.