DAF - Ontologies and Vocabularies demo portal
onto-portal is the demo of ontologies and vocabularies portal
Note: You can use yarn or npm as you prefer, however yarn is recommended
- If you use yarn, run:
yarn
- If you use npm, run:
npm install
Note: This step will take a while due the installation of project dependecies
This application depends on katalod
's API, this means that you need to run katalod
at localhost
before launch this application.
- If you use yarn, run:
yarn start
- If you use npm, run:
npm start
Note: In this step the webpack-dev-server will bundle the sources (while performing other operations like transpiling with babel) and will open automatically the browser at
localhost:8080
which is the default address of webpack-dev-server
- If you use yarn, run:
yarn build
- If you use npm, run:
npm build
Note: During the build webpack will bundle all the sources in
dist
folder at the root of this project, so the application will be stored at./dist
- If you use yarn, run:
yarn serve
- If you use npm, run:
npm run serve
Note: At this point you have to serve the application. In this example we will use
serve
to accomplish that but if you feel confort with other tools feel free to use one of them, just remember that this application is stored in./dist
folder and it's entrypoint is located at./dist/app.bundle.js
We provide the Dockerfile to build a local docker image. This will deploy the application in production mode, simply run:
docker build -t onto-portal:0.0.1 .
Note: If you want to edit the Dockerfile you can, but always build and run in
production
mode because the currentdevelopment
mode in aheadless environment
does not work