Skip to content

Latest commit

 

History

History
68 lines (41 loc) · 2.09 KB

STUDENT.md

File metadata and controls

68 lines (41 loc) · 2.09 KB

HiddenMickey

The application was generated from the sdg-react template. It includes:

  • CORS Enabled
  • Swagger
  • Postgres & EF Core
  • Single Page App powered by React

To use

The default database will be named SampleApiDatabase. You can change this in DatabaseContext.cs

To add a package to your front end:

Either:

  1. cd ClientApp
  2. npm install --save NAME
  3. cd ..

or:

  1. npm install --prefix=ClientApp --save NAME

To SETUP deployment to Heroku

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 replacing janedoe with your name.

  • heroku apps:create NAMEOFAPP - NOTE: replace NAMEOFAPP with something that is unique to your project.
  • heroku buildpacks:add suncoast-devs/dotnetcore-buildpack
  • git push heroku HEAD:master

To setup secrets for Heroku

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"

To deploy to Heroku

  • git push heroku HEAD:master

To open your deployed application

  • heroku open

To setup continuous deployment

  • Visit heroku.com and go to the configuration page for your app
  • Choose the deploy tab
  • Select github as the deployment method. github
  • Select Connect to Github github
  • Browse for your repository github
  • Connect to your repository github
  • Enable automatic deploys github

PROTIP:

When you are complete with the project and have turned it in to your instructor, update README.md with details about the assignment.