Sera-ai / sera-backend-sequencer

Sequencer builds the API request and runs through the builder nodes
0 stars 0 forks source link

Sera Backend Sequencer

Node.js Docker

Overview

Welcome to the Sera Backend Sequencer repository. This project is a Fastify Node.js server designed to handle backend sequencing tasks efficiently. The repository includes Docker support and GitHub Actions workflows for CI/CD.

Table of Contents

Features

Getting Started

Prerequisites

Ensure you have the following installed:

Setup

  1. Clone the repository:

    git clone https://github.com/Sera-ai/sera-backend-sequencer.git
    cd sera-backend-sequencer
  2. Install dependencies:

    npm install

Running the Server

  1. Start the development server:

    npm run dev
  2. Open your browser and navigate to http://localhost:3000 to see the application running.

Docker Setup

  1. Build the Docker image:

    docker build -t sera-backend-sequencer .
  2. Run the Docker container:

    docker run -p 3000:3000 sera-backend-sequencer
  3. Open your browser and navigate to http://localhost:3000 to see the application running.

Project Structure

sera-backend-sequencer/
│ .gitignore
│ Dockerfile
│ index.js
│ nodemon.json
│ package.json
├───.github/
│ └───workflows/
│ └───docker-build.yml
└───src/
├───helpers/
│ ├───helpers.database.js
│ ├───helpers.learning.js
│ └───helpers.sequence.js
├───routes/
│ ├───routes.events.js
│ └───routes.network.js
├───scripts/
│ ├───scripts.js.eventNode.js
│ └───scripts.lua.apinode.js
└───templates/
├───main.js.template
└───main.lua.template