You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Matt Huntington 85357a2fe9
Update README.md
5 years ago
.mvn/wrapper init 5 years ago
src/main heroku db 5 years ago
.gitignore init 5 years ago
Procfile updating procfile for heroku 5 years ago
README.md Update README.md 5 years ago
mvnw init 5 years ago
mvnw.cmd init 5 years ago
pom.xml taking out tests 5 years ago
system.properties switching to java 15 5 years ago

README.md

Steps to Create and Deploy:

set up local

local postgres

  1. open your postgres app and start the db server
  2. in the postgres app, double click one of the existing databases to enter psql
  3. once inside psql, run CREATE DATABASE springdemo;

in your browser

  1. fork this repo

in your terminal

  1. clone your fork of this repo onto your local computer somewhere outside the class repo
  2. cd into the local repo

Set up an environment variable so your local spring app will use your local postgres database:

export JDBC_DATABASE_URL=jdbc:postgresql://localhost:5432/springdemo

Now start spring:

./mvnw spring-boot:run

set up heroku

in your terminal

  1. run heroku create (take note of the app name for later)
  2. run git push heroku master

in your browser

  1. go to heroku.com in your browser and sign in
  2. find this newly created heroku app in your list of available apps and click on it
  3. go to resources
  4. search for postgres and choose Heroku Postgres
  5. choose "Hobby Dev - Free"
  6. click provision