BloomTech-Labs / kidsonstage

MIT License
1 stars 2 forks source link

DB migrations, seeds, file structure, added dependencies #8

Closed TylerSanford closed 6 years ago

TylerSanford commented 6 years ago

Description

-I created the migrations and the seed files so that knex.js can populate the postgres DB and seed with basic filler test data. Tested on my local machine's postgres. Will need to run migrations and seeds once PR is approved and hosted on heroku.

-Modified the servers package.json to include cors, body-parser, and dotenv

-Modified the react-ui package.json to include redux, react-redux, redux-thunk (These were all changes made earlier in the day by another team member, although the dependencies weren't added to the package.json so the app wouldn't start.)

-Added heroku config vars to work with the database.

-Added and modified server with dotenv package to allow smart switching from local dev and production databases.

-Reorganized the servers file structure

-Added christy's user and admin endpoints to the servers api

Fixes # (issue)

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Checklist: