This how-to is the first step of the tutorial Getting Started with the Nuxeo Platform, allowing you to explore the Nuxeo Platform through its REST API. It provides instructions for installing and running a Nuxeo Platform instance using Docker, Homebrew or the ZIP package.
Docker
OS: Linux, Mac OS, Windows
Installation
Install Docker: Follow the Docker Installation documentation.
Download and start the Nuxeo Platform:
$ docker run -ti --name mynuxeo -p 8080:8080 nuxeo/nuxeo:discover-ft
Register your Nuxeo instance on Nuxeo Online Services:
# You don't have a Nuxeo Online Service account $ docker exec -ti mynuxeo bin/nuxeoctl register-trial # OR # You already have a Nuxeo Online Service account $ docker exec -ti mynuxeo bin/nuxeoctl register
And follow the instructions displayed.
Setting up Environment
You now have a Nuxeo Platform instance ready to run. At this step, you need to install some addons, in particular the addon Getting started with the Nuxeo Platform.
The addon Getting started with the Nuxeo Platform will add some business logic and documents to your Nuxeo Platform instance, that we will leverage all through this tutorial.
Stop the server.
$ docker exec mynuxeo bin/nuxeoctl stop
Initialize local Nuxeo addons.
$ docker exec mynuxeo bin/nuxeoctl mp-init
Get the list of local Nuxeo addons.
$ docker exec mynuxeo bin/nuxeoctl mp-list
You get the list of local addons, whose status is downloaded.
Install the addons required for this tutorial.
$ docker exec -ti mynuxeo bin/nuxeoctl mp-install nuxeo-dam nuxeo-web-ui nuxeo-platform-getting-started
Validate the dependency resolution step.
Dependency resolution: Installation order (3): nuxeo-dam-6.4.3/nuxeo-web-ui-2.4.0/nuxeo-platform-getting-started-1.3.3 Packages to download (3): nuxeo-web-ui:2.4.0, nuxeo-dam:6.4.3, nuxeo-platform-getting-started:1.3.3 Do you want to continue (yes/no)? [yes]
Check the Nuxeo addons were correctly installed.
$ docker exec mynuxeo bin/nuxeoctl mp-list [...] Local packages: addon started nuxeo-dam (id: nuxeo-dam-6.4.3) addon started nuxeo-web-ui (id: nuxeo-web-ui-2.4.0) addon started nuxeo-platform-getting-started (id: nuxeo-platform-getting-started-1.3.3)
The installed addons now have the status started.
Start the server:
$ docker exec mynuxeo bin/nuxeoctl start [...] Server started with process ID 973.
Your server is now running. You benefit from the following features brought by the addon Getting started with the Nuxeo Platform.
The addon brings the following document types:
- The portfolio document type (
BCPortfolio
) holds the contracts of a customer. Its holds properties about the customer: the company name, industry and size, and the customer's juridical contact information. - The contract document type (
BCContract
) have several properties: an owner (an application user), some dates (signature, start, expiration dates), a type, an amount. It inherits customer information from its portfolio. - Some vocabularies are used to populate the portfolio and contract metadata (
companySize
,contractType
andindustry
) - Contracts have a specific lifecycle, so they can evolve though the states
draft
,approval
,running
,renegociation
andvoid
- Some business logic through automation chains and event handlers make contracts inherit properties from its portfolio, and evolve following its lifecycle
Homebrew
OS: Mac OS
Installation
- Install Homebrew: Follow their documentation.
Install the Nuxeo Platform:
$ brew install nuxeo
Register your Nuxeo instance on Nuxeo Online Services:
# You don't have a Nuxeo Online Service account $ nuxeoctl register-trial # You already have a Nuxeo Online Service account $ nuxeoctl register
And follow the instructions displayed.
Setting up Environment
You now have a Nuxeo Platform instance ready to run. At this step, you need to install some addons, in particular the addon Getting started with the Nuxeo Platform.
The addon Getting started with the Nuxeo Platform will add some business logic and documents to your Nuxeo Platform instance, that we will leverage all through this tutorial.
To install a Nuxeo Package:
Initialize local Nuxeo addons.
$ nuxeoctl mp-init
Get the list of local Nuxeo addons.
$ nuxeoctl mp-list
You get the list of local addons, whose status is downloaded.
Install the addons required for this tutorial.
$ nuxeoctl mp-install nuxeo-dam nuxeo-web-ui nuxeo-platform-getting-started
Validate the dependency resolution step.
Dependency resolution: Installation order (3): nuxeo-dam-6.4.3/nuxeo-web-ui-2.4.0/nuxeo-platform-getting-started-1.3.3 Packages to download (3): nuxeo-web-ui:2.4.0, nuxeo-dam:6.4.3, nuxeo-platform-getting-started:1.3.3 Do you want to continue (yes/no)? [yes]
Check the Nuxeo addons were correctly installed.
$ nuxeoctl mp-list [...] Local packages: addon started nuxeo-dam (id: nuxeo-dam-6.4.3) addon started nuxeo-web-ui (id: nuxeo-web-ui-2.4.0) addon started nuxeo-platform-getting-started (id: nuxeo-platform-getting-started-1.3.3)
The installed addons now have the status started.
Start the server
$ nuxeoctl console
Your server is now running. You benefit from the following features brought by the addon Getting started with the Nuxeo Platform.
The addon brings the following document types:
- The portfolio document type (
BCPortfolio
) holds the contracts of a customer. Its holds properties about the customer: the company name, industry and size, and the customer's juridical contact information. - The contract document type (
BCContract
) have several properties: an owner (an application user), some dates (signature, start, expiration dates), a type, an amount. It inherits customer information from its portfolio. - Some vocabularies are used to populate the portfolio and contract metadata (
companySize
,contractType
andindustry
) - Contracts have a specific lifecycle, so they can evolve though the states
draft
,approval
,running
,renegociation
andvoid
- Some business logic through automation chains and event handlers make contracts inherit properties from its portfolio, and evolve following its lifecycle
Universal ZIP Package
OS: Linux, Mac OS, Windows
Contrarily to the Brew installation or Docker image, the universal ZIP package comes without the related software needed for this tutorial. Please install and set up related software before going to the next step.
Installation
- Unzip the Nuxeo Platform .zip.
Register your Nuxeo instance on Nuxeo Online Services:
# Linux and Mac OS # You don't have a Nuxeo Online Service account $ ./$NUXEO_HOME/bin/nuxeoctl register-trial # You already have a Nuxeo Online Service account $ ./$NUXEO_HOME/bin/nuxeoctl register # Windows # You don't have a Nuxeo Online Service account $ .\$NUXEO_HOME\bin\nuxeoctl.bat register-trial # You already have a Nuxeo Online Service account $ .\$NUXEO_HOME\bin\nuxeoctl.bat register
And follow the instructions displayed.
Setting up Environment
You now have a Nuxeo Platform instance ready to run. In this step, you need to install some addons, in particular the addon Getting started with the Nuxeo Platform.
The addon Getting started with the Nuxeo Platform will add some business logic and documents to your Nuxeo Platform instance which we will leverage throughout this tutorial.
To install a Nuxeo Package:
Initialize local Nuxeo addons.
# Linux and Mac OS $ ./nuxeoctl mp-init # Windows $ .\nuxeoctl.bat mp-init
Get the list of local Nuxeo addons.
# Linux and Mac OS $ ./nuxeoctl mp-list # Windows $ .\nuxeoctl.bat mp-list
You get a list of the local addons that have been downloaded.
Install the addons required for this tutorial.
# Linux and Mac OS $ ./nuxeoctl mp-install nuxeo-dam nuxeo-web-ui nuxeo-platform-getting-started # Windows $ .\nuxeoctl.bat mp-install nuxeo-dam nuxeo-web-ui nuxeo-platform-getting-started
Validate the dependency resolution step.
Dependency resolution: Installation order (3): nuxeo-dam-6.4.3/nuxeo-web-ui-2.4.0/nuxeo-platform-getting-started-1.3.3 Packages to download (3): nuxeo-web-ui:2.4.0, nuxeo-dam:6.4.3, nuxeo-platform-getting-started:1.3.3 Do you want to continue (yes/no)? [yes]
Check that the Nuxeo addons were correctly installed.
# Linux and Mac OS $ ./nuxeoctl mp-list [...] Local packages: addon started nuxeo-dam (id: nuxeo-dam-6.4.3) addon started nuxeo-web-ui (id: nuxeo-web-ui-2.4.0) addon started nuxeo-platform-getting-started (id: nuxeo-platform-getting-started-1.3.3) # Windows $ .\nuxeoctl.bat mp-list [...] Local packages: addon started nuxeo-dam (id: nuxeo-dam-6.4.3) addon started nuxeo-web-ui (id: nuxeo-web-ui-2.4.0) addon started nuxeo-platform-getting-started (id: nuxeo-platform-getting-started-1.3.3)
The installed addons now have the status 'started'.
Start the server.
# Linux and Mac OS $ ./nuxeoctl console # Windows $ .\nuxeoctl.bat console
Your server is now running with the addon Getting started with the Nuxeo Platform.
The addon brings the following document types:
- The portfolio document type (
BCPortfolio
) holds the contracts of a customer. Its holds properties about the customer: the company name, industry and size, and the customer's juridical contact information. - The contract document type (
BCContract
) have several properties: an owner (an application user), some dates (signature, start, expiration dates), a type, an amount. It inherits customer information from its portfolio. - Some vocabularies are used to populate the portfolio and contract metadata (
companySize
,contractType
andindustry
) - Contracts have a specific lifecycle, so they can evolve though the states
draft
,approval
,running
,renegociation
andvoid
- Some business logic through automation chains and event handlers make contracts inherit properties from its portfolio, and evolve following its lifecycle