Part of the EDGELESS Project
The Function Repository API is a component of EDGELESS, designed to store and manage both functions and workflows. This API allows for handling of multiple versions of functions, including their creation, update, deletion, and retrieval. It also provides tools for defining and managing workflows that utilize these functions.
-
Function Management:
- Create, update, delete, and retrieve functions.
- Manage multiple versions of a function.
- Upload and download function code files.
- Retrieve function versions.
-
Workflow Management:
- Create, update, delete, and retrieve workflows.
- Define workflows using JSON, referencing existing functions in the repository.
This API is intended for:
- Function Developers (funcdev): To manage functions.
- Application Developers (appdev): To manage workflows.
- TypeScript
- Nest.js
- MongoDB
- MongoDB
- Download MongoDB Image
docker pull mongo:4
- Run MongoDB Container
docker run --name mongo-nest -p 27017:27017 -d mongo:4
- Go to project folder and install dependencies:
npm install
- Launch development server, and open
localhost:3003
in your browser:
npm start
Task automation is based on NPM scripts.
Task | Description |
---|---|
npm start |
Run development server on http://localhost:3003/ |
npm start
- Start applicationnpm run build
- Build application
This API can be deployed using Docker. A Dockerfile
is provided to build and run the API in a containerized environment.
To deploy the API using Docker, follow these steps:
-
Build the Docker image:
docker build -t function-repository-api .
-
Run the Docker container:
docker run -p 3000:3000 function-repository-api
The Repository is licensed under the MIT License.
EDGELESS received funding from the European Health and Digital Executive Agency (HADEA) program under Grant Agreement No 101092950.