Skip to content

Start your journey with ONE Record! Deploy your first server in few seconds

Notifications You must be signed in to change notification settings

IATA-Cargo/one-record-first-steps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ONE Record First Steps

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

Prerequisites

Step by step guide

  1. Clone the repository
    git clone https://gitlab.com/iata-cargo/one-record-server-first-steps.git
  2. Switch to the directory to docker-compose
    cd one-record-server-first-steps/docker-compose
    If you have Mac or Linux, please reset folder permissions
    chmod -R 755 ./
  3. Start all services with docker compose
    docker compose up -d
  4. 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
  5. 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.

Overview of services

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)

Postman Collection

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.

  1. Download the Postman Collection here. It will open a new github page, use the download button to get the file

  2. Download the Postman Environment here. It will open a new github page, use the download button to get the file

  3. Import the Environment in Postman

Image9

  1. Import the Collection in Postman

Image8

  1. In the Environments tab, select Hackathon environment and set the baseUrlKeyCloak to http://localhost:8989.

Image10

  1. Set the baseUrlShipper,baseUrlForwarder and baseUrlAirline to http://localhost:8080.

Image14

  1. Select Collections on the right menu and open the Hackathon collection already imported

  2. Use the Token Request call to generate and access token

Image16

  1. 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

Image15

  1. If everything is setup correctly, you will see the server information of the NE:ONE local server

  2. Copy the access token in Authentication tab of the Example Workflow folder

  3. Run the calls one by one to create the objects. The order is important as each call is connected to the previous one.

Add NE:ONE server into NE:ONE Play

  1. Connect to NE:ONE Play http://localhost:3001

  2. Click on the setting button in the top-right corner (cog icon)

  3. 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

    Image17

  4. Now you can start using NE:ONE Play.

About

Start your journey with ONE Record! Deploy your first server in few seconds

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published