Welcome to the ONE Record First Steps, in this document you will find all the instructions to run a NE:ONE Server and a NE:ONE Play instance on your personal computer
- Docker installed
- Docker Compose installed (make sure you have compose V2)
- Git installed
- Clone the repository
git clone https://gitlab.com/iata-cargo/one-record-server-first-steps.git
- Switch to the directory to docker-compose
If you have Mac or Linux, please reset folder permissions
cd one-record-server-first-steps/docker-compose
chmod -R 755 ./
- Start all services with docker compose
docker compose up -d
- Wait until all containers are up and running:
[+] Running 6/6 ✔ Network docker-compose_default Created 0.0s ✔ Container docker-compose-graph-db-1 Healthy 0.0s ✔ Container docker-compose-keycloak-1 Healthy 0.0s ✔ Container docker-compose-ne-one-server-1 Started 0.0s ✔ Container docker-compose-graph-db-setup-1 Started 0.0s
- Try to access the ONE Record Server by http://localhost:8080 using your favorite browser. You should see a HTTP Error 401, because you did not authenticate yet. But this confirms that the ONE Record Server is up and running.
Name | Description | Base URL / Admin UI |
---|---|---|
ne-one server | ne-one server | http://localhost:8080 |
ne-one view | ne-one view | http://localhost:3000 |
ne-one play | ne-one play | http://localhost:3001 |
graphdb | GraphDB database as database backend for ne-one server | http://localhost:7200 |
keycloak | Identity provider for ne-one server to authenticate ONE Record clients and to obtain tokens for outgoing requests. Preconfigured client_id: neone-client Preconfigured client_secret: lx7ThS5aYggdsMm42BP3wMrVqKm9WpNY |
http://localhost:8989 (username/password: admin/admin) |
To have you up and running we prepared a Postman collection. You will need to install Postman or a compatible software in order to use it.
-
Download the Postman Collection here. It will open a new github page, use the download button to get the file
-
Download the Postman Environment here. It will open a new github page, use the download button to get the file
-
Import the Environment in Postman
- Import the Collection in Postman
- In the Environments tab, select Hackathon environment and set the baseUrlKeyCloak to http://localhost:8989.
- Set the baseUrlShipper,baseUrlForwarder and baseUrlAirline to http://localhost:8080.
-
Select Collections on the right menu and open the Hackathon collection already imported
-
Use the Token Request call to generate and access token
- Copy the access token (it might be a long string, please copy the full content) in the Authorization tab of the Get ServerInformation and run the call
-
If everything is setup correctly, you will see the server information of the NE:ONE local server
-
Copy the access token in Authentication tab of the Example Workflow folder
-
Run the calls one by one to create the objects. The order is important as each call is connected to the previous one.
-
Connect to NE:ONE Play http://localhost:3001
-
Click on the setting button in the top-right corner (cog icon)
-
Add your server following this instruction:
- Organization Name: <Choose a name (any string is accepted)>
- Protocol: http
- Host: http://localhost:8080
- Token : <Use the postman collection to generate a token and copy it here (follow the previous paragraph)>
- Color : pick up a random color
-
Now you can start using NE:ONE Play.