HiddenMickey
The application was generated from the sdg-react
template. It includes:
- CORS Enabled
- Swagger
- Postgres & EF Core
- Single Page App powered by React
The default database will be named SampleApiDatabase. You can change this in DatabaseContext.cs
Either:
cd ClientApp
npm install --save NAME
cd ..
or:
npm install --prefix=ClientApp --save NAME
These steps need to be done ONCE before you can deploy to heroku
NOTE: You must choose an app name that is unique across all of heroku. If you want to use a name that isn't available, try appending unique like
-sdg
or-janedoe
replacingjanedoe
with your name.
heroku apps:create NAMEOFAPP
- NOTE: replaceNAMEOFAPP
with something that is unique to your project.heroku buildpacks:add suncoast-devs/dotnetcore-buildpack
git push heroku HEAD:master
Heroku stores secrets in your environment variables. You can change these from the command line or from your app's configuration on heroku.com
If you are using JWT tokens, you need to do the following:
heroku config:set JWT_KEY="MY RANDOM STRING OF LETTERS AND NUMBERS TO USE FOR A KEY"
If you are using a third party API you can set any configuration as such:
heroku config:set THIRD_PARTY_KEY_NAME="THIRD PARTY KEY VALUE"
git push heroku HEAD:master
heroku open
- Visit heroku.com and go to the configuration page for your app
- Choose the
deploy
tab - Select
github
as the deployment method. - Select
Connect to Github
- Browse for your repository
- Connect to your repository
- Enable automatic deploys
When you are complete with the project and have turned it in to your instructor, update README.md with details about the assignment.