- Simple setup via Heroku
- Install manually
There are different ways on how to install HOFFNUNG 3000. We tried to keep the technical steps required as small as possible, with some patience you will be able to run HOFFNUNG 3000, even if you have never dealt with these things before.
Simple setup via Heroku
Register a new account on Heroku if you don’t already have one
Click the following button to automatically deploy HOFFNUNG 3000 and a database on your Heroku server:
Choose a name and region, then click
Deploy app. Wait until the installation finished on your server
Now the platform is ready and can be visited:
https://<your-app-name>.herokuapp.com. Read the Usage guide to learn how to use HOFFNUNG 3000
Please note that this simple setup is not recommended for official festival settings. Read further to learn how to prepare HOFFNUNG 3000 for production.
For this setup we assume you already have a running NodeJS server environment, SMTP mail server and a PostgreSQL database installed.
- Server with NodeJS environment (tested with v10.12.0)
- PostgreSQL Database (tested with v11.2)
- Mail server (SMTP)
- PayPal business account for payment (optional)
- AWS S3 Cloud Storage (optional)
- gif-stream-server (optional)
Crucial settings of HOFFNUNG 3000 are configured via environment variables, further configuration can be handled via the Admin panel after setup.
- Learn here how to set Config Vars on Heroku
- For other servers check out the .env.example file and copy it to
cp .env.example .env)
Make sure you’ve set
false when installing HOFFNUNG 3000 via Heroku, otherwise the build process will fail. Read more about it here.
DATABASE_URLpointing at your PostgreSQL database (for example postgres://username:firstname.lastname@example.org:5432/dbname)
DATABASE_DIALECTdescribing the type of database we want to use (pick postgres)
JWT_SECRETchoose or generate a strong, long random sequence of symbols, characters and numbers for password validation. Never expose this key to the public!
SMTP_PASSto send notification and confirmation emails from your mail address
Optional: AWS S3
By default HOFFNUNG 3000 stores all user uploads (images) in a folder named uploads on your server which is not recommended. Use AWS S3 Cloud Storage to externally host images and separate user content from the application server.
Create an AWS S3 Bucket and assign the right permissions (public readable, writeable by authenticated AWS user)
Define the needed AWS environment variables:
Please note: It is not possible to change to S3 after using the local storage setup without loosing user data.
This is an optional step and only required if you want to sell tickets to visitors and/or participants via PayPal.
Create a PayPal Developer Account and get an access token for testing and live setup
Store the access token and id as environment variables
The gif-stream-server is an independent server written in Go, requiring AWS S3. It has to run independently of HOFFNUNG 3000. You can read more about the setup here.
After setup, you can add the gif-stream-server URL (without trailing slash!) in the HOFFNUNG 3000 admin panel configuration to connect the platform to the gif-stream-server.
2. Install dependencies
npm run build) for production use:
3. Database migration and setup
To create all required tables in the given database, you issue the following commands:
npm run db:migrate npm run db:seed
The seed will create a default admin user with email:
email@example.com and passwort:
adminadmin. Please change the credentials after first login in the admin panel.
4. Start server
Run the following command to run the server (make sure the build and migration process was successful before):