Skip to content

FreeCAD/Ondsel-Server

 
 

Repository files navigation

Ondsel-Server

Getting Started

Clone the repository with submodules

git clone --recurse-submodules https://github.com/FreeCAD/Ondsel-Server.git
cd Ondsel-Server

Installation

You can install Ondsel-Server in two ways:

  1. Using docker-compose (Recommended, only requires Docker)
  2. Manual installation (Requires all dependencies)

Prerequisites for docker-compose

Prerequisites for manual installation

Using docker-compose (Recommended)

This is the easiest way to run the entire application stack.

Create environment file:

cp env.example .env

Start the server:

# With analytics (recommended):
docker-compose --profile matomo-enabled up --build -d

# Without analytics:
docker-compose up --build -d

# Rebuild the frontend on env change:
docker-compose build --no-cache frontend

# For development:
docker-compose -f docker-compose.dev.yml --profile matomo-enabled up --build -d

That's it! The application should now be running at http://localhost:3000

Default Credentials

Matomo Analytics
Frontend Application

These credentials can be customized using environment variables in the .env file.

Note: For production environments, it's strongly recommended to change these default credentials using environment variables.

Manual Installation

Running frontend

  • Go to the frontend directory
  • Rename env.example to .env (Or export variables)
  • Install frontend dependencies npm ci
  • Finally, run server npm run dev
$ cd frontend
$ mv env.example .env
$ set -a; . ./.env; set +a
$ npm ci
$ npm run dev

To run from Docker, recompile with:

sudo docker build -t frontend .

and run (or re-run) with:

sudo docker run --env-file .env -p 80:80 --rm --name frontend frontend:latest

Running backend

  • Go to the backend directory
  • Rename env.example to .env (Or export variables)
  • Install frontend dependencies npm ci
  • Finally, run server npm run dev
$ cd backend
$ mv env.example .env
$ set -a; . ./.env; set +a
$ npm ci
$ npm run dev

Running FC-Worker

  • Clone FC-Woker repository.
  • Build docker image (docker build -t fc-worker .)
  • Run docker image (docker run -p 9000:8080 --name fc_worker fc-worker:latest)
$ git clone git@github.com:FreeCAD/FC-Worker.git
$ cd FC-Worker
$ docker build -t fc-worker .
$ docker run -p 9000:8080 --name fc_worker fc-worker:latest

About

web platform which mainly contains frontend and backend for Ondsel Service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 57.3%
  • Vue 37.7%
  • Lua 4.3%
  • Python 0.4%
  • HTML 0.2%
  • Dockerfile 0.1%