The Opbeans inventory management system is a demo app created and maintained by Elastic.
It's hosted on opbeans.com.
This application uses the following technologies:
This app can be deployed directly to Heroku by pressing the button above. You will need to enter the required environment variables to complete the deployment. See below for configuration options.
Setup the following environment variables:
NODE_ENV
- The current Node environment (set toproduction
to enable Elastic APM)PGHOST
- PostgreSQL server hostPGPORT
- PostgreSQL server portPGUSER
- PostgreSQL database usernamePGPASSWORD
- PostgreSQL database passwordPGDATABASE
- PostgreSQL database name (defaults toopbeans
)ELASTIC_APM_APP_NAME
- Elastic APM App Name for the server appELASTIC_APM_SERVER_URL
- APM Server URL (defaults tohttp://localhost:8080
)REACT_APP_OPBEAT_APP_ID
- Opbeat App Id for the client appREACT_APP_OPBEAT_ORG_ID
- Opbeat Organization Id for the client app
For a complete list of PostgreSQL environment variables see the official documentation.
In development, you can create a .env
file in the root of the project
containing all your secret environment variables. See dotenv for details. Additionally if you create a .env
file in the /client
folder, variables prefixed with REACT_APP_
will be available in the React app.
Populate the database with tables and basic data:
npm run db-setup
Generate random orders:
node db/generate_orders.js <num>
Where <num>
is the amount of orders to create.
npm start
The Node.js server have a built-in bug that you can trigger by
navigating to the path /is-it-coffee-time
.
MIT
Made with