Since Aventum simply consists of two parts server(Express server) and dashboard(create-react-app) there are many different ways to install Aventum, here we describe some of them.
If you want to try Aventum and play with it you can install it quickly using Aventum CLI.
First, install the cli using npm install @aventum/cli -g
then you can run aventum create -r
in an empty folder to create and run Aventum app.
Currently, you can use the Docker Compose template that we created to run Aventum using Docker quickly, you can install the Docker Compose template manually or automatically using Aventum CLI.
First, install the CLI using npm install @aventum/cli -g
then you can run aventum create -d
in an empty folder to create Aventum's Docker Compose template.
ADD
.ADD/server
folder and the dashboard files to ADD/dashboard
.docker-compose -f docker-compose.postgres.yml up
in ADD
folder to use PostgreSQL or run docker-compose -f docker-compose.mongodb.yml up
to use MongoDB.For more info about the template please check https://github.com/TryAventum/compose
server
folder and clone or download Aventum server https://github.com/TryAventum/server files to it.npm i
in the server
folder.server/pg.env
or server/mongo.env
and name it .env
and change the values to suits your needs.node .
in the server
folder to run the server.dashboard
folder and clone or download Aventum dashboard https://github.com/TryAventum/dashboard files to it.npm i
in the dashboard
folder.dashboard/.env.production
with name .env.production.local
and make sure that REACT_APP_BASE_URL=http://localhost:3030/
npm run build
in the dashboard
folder.npm install serve -g
to install serve
.serve -s build
in the dashboard
folder.