Skip to content

Contains the server side code for TMF620-API that allows the Marketplace to utilize the TMI forum APIs and specifically the TMF620 (Product Catalog Management API)

Notifications You must be signed in to change notification settings

EVOLVED-5G/marketplace-tmf620-api

Repository files navigation

Swagger generated server 2.3.1

Overview

This server was generated by the swagger-codegen project. By using the OpenAPI-Spec from a remote server, you can easily generate a server stub.

Upload product-catalog-management

Upload the Server to Bluemix with client

  1. cf login: cf login [-a API_URL] [-u USERNAME] [-p PASSWORD] [-o ORG] [-s SPACE] For Example: cf login -a https://api.ng.bluemix.net -u [email protected] -o tmforum -s apidev

  2. cf push: cf push

Local Use

  1. start local mongoDB (or change /service/config.json file for external mongoDB)

  2. npm start

Check out Description in Confluence: https://projects.tmforum.org/wiki/pages/viewpage.action?pageId=38142767

This project leverages the mega-awesome swagger-tools middleware which does most all the work.

Deployment with Docker

Since this docker infrastructure connects to an external network, we need to create this network, if it doesn't exist already. In order to create it, run:

docker network create docker_evolved5g_net

In order to build and launch the docker image and container, run:

docker build -t tmf_backend:latest .
docker run --name tmf_backend_container --rm 
--add-host=host.docker.internal:host-gateway -p 8080:8080 tmf_backend:latest

You can achieve this also by using docker compose. So run

docker-compose up --build -d

And the docker container will be built and run. The app will then be available via localhost:8080.

If you want to access the app from another Docker container (that runs on the same Docker network), you should use the docker container name instead of localhost:

http://evolved5g_pilot_tmf_api_container:8080

About

Contains the server side code for TMF620-API that allows the Marketplace to utilize the TMI forum APIs and specifically the TMF620 (Product Catalog Management API)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published