Skip to content

Commit

Permalink
Finished Heroku API deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
theavicaster committed Nov 18, 2020
1 parent e811950 commit c0c2a1a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: java $JAVA_OPTS -jar target/spookify-backend-0.0.1-SNAPSHOT.jar -Dserver.port=$PORT $JAR_OPTS
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@

>#### API is deployed to [`https://spookify-music.herokuapp.com/api/`](https://spookify-music.herokuapp.com/api/)
### Database Design

---
Expand Down Expand Up @@ -329,11 +332,11 @@ Swagger documentation can be found at `localhost:8080/swagger-ui/`

![Swagger Documentation](snapshots/swagger_docs.png?raw=true "Swagger Documentation")

### Usage
### Local Usage

---

#### Set up MySQL
#### Set up PostgreSQL

- Ensure that there is a database named `spookify` created
- Ensure that there is a user with DDL permissions
Expand All @@ -344,9 +347,11 @@ Swagger documentation can be found at `localhost:8080/swagger-ui/`
- Add the lines
```
export JWT_SECRET=YourJWTSecret
export MYSQL_HOST=YourMySQLHost
export SPOOKIFY_USER=YourMySQLUsername
export SPOOKIFY_PASSWORD=YourMySQLPassword
export DB_HOST=YourDBHost
export DB_PORT=YourDBPort
export DB_USER=YourDBUsername
export DB_NAME=YourDBName
export DB_PASSWORD=YourDBPassword
```
to set system environment variables for the production environment
- Run `source /etc/environment` or login again for changes to take effect
Expand Down
Binary file added spookify-backend-0.0.1-SNAPSHOT.jar
Binary file not shown.

0 comments on commit c0c2a1a

Please sign in to comment.