Heroku
Plan
-
What is Heroku ?
- Heroku is a container-based cloud Platform as a Service (PaaS).
- Fully Managed
-
How it works ?
- Application hosting
- Data storage (Heroku Postgres)
- Heroku Connect
-
How to use it ?
- Write your application
- Create an application on herokuapp.com
- Connect you application code to the heroku application
- Or install an Add-on like Heroku Connect
What is Heroku ?
- Platform as a service PaaS
- Scalable : Whether a 2-person startup or a 10,000-person enterprise, Heroku makes it easy for apps to scale. Not just in terms of ensuring your apps stay up - but also in terms of how apps are managed.
- 26+ Billion Requests per Day
- 9+ Million Apps Created
- 175+ Add-on Services
- 2+ Million Managed Data Stores
What it works ?
- Defining an application
- Knowing what to execute
- Deploying applications
- Building applications
- Running applications on dynos
- Config vars
How to use ?
- Add-ons
- Custom Application
Demo
Create new application
// https://dashboard.heroku.com/new-app : my-new-project # New Application on Heroku git clone https://gitlab.com/djammadev.com/my-todo-list.git # Clone the project into your local machine cd my-todo-list # Go into the new project rm -rf .git # Clean up git history heroku login # Login into heroku in your local machine. git init # Initialize git git add . # Add all none ignored files git commit -m 'Initial commit' # Commit all files heroku git:remote -a my-new-project # Add heroku remote git push -u heroku main # Deploy your application into heroku /!\ Update variables in your heroku application. You can use for example H2 as database. // The application is accessible on https://my-new-project.herokuapp.com # Variables you may need DATABASE_USERNAME=root DATABASE_PASSWORD=complicate-password DATABASE_DRIVER=org.h2.Driver DATABASE_NAME=my-todo-list DATABASE_URL="jdbc:h2:file:./my-todo-list;MODE=MYSQL;DB_CLOSE_DELAY=-1" EBEAN_MIGRATION_GENERATE=true EBEAN_MIGRATION_RUN=true EBEAN_MIGRATION_PATH=dbmigration/mysql EBEAN_MIGRATION_NAME=migration
Demo
Connect application with salesforce
The application my-todo-list has two different protocols implemented. 1. OData Protocol : /api/todolist.svc/* : Access is required by an admin 2. Standard Json Webservice : /api/*