lenne.Tech Monorepro
June 14, 2026 ยท View on GitHub
In this readme you find all information about functionality and usage of this project. It is clustered in the following sections:
๐ Content Table
- About the project
- Links to running systems
- Prerequisites
- Quick start for contributors
- Environment Variables
- Tech-Stack
- How to create a new db-collection
- Deployment
๐ About the project
write here about the project
๐ Links to running systems
The following systems are currently running:
- Dev
- Test
- Production
โ๏ธ Prerequisites
Make sure you have the following installed:
๐ Quick start for contributors
Development system must have node installed + mongo installed and running
The project is created as a monorepo. The repository is divided in two separate sections:
- app
- api
The following steps are necessary to install everything correctly:
# Clone repository
git clone <repository-url>
# Switch to project-folder
cd <project-folder>
# Install dependencies for app and api
pnpm run init
# Create environment variables
cd projects/app
cp .env.example .env
# Start project
cd ../../
pnpm run start
๐ ๏ธ Environment Variables
You need to set up the following environment variables in the .env file:
| Variable | Description | Default (.env.example) |
|---|---|---|
SITE_URL | Defines the base URL of the frontend application. | http://127.0.0.1:3001 |
NODE_ENV | Specifies the environment in which the application is running. | development |
API_URL | Defines the base URL of the backend API. | http://127.0.0.1:3000 |
WEB_PUSH_KEY | The public key used for Web Push notifications. | (empty) |
API_SCHEMA | The path to the GraphQL schema file. | ../api/schema.gql |
STORAGE_PREFIX | Defines the prefix used for local storage or cache keys. | fc-dev |
GENERATE_TYPES | Determines whether or not types should be automatically generated. | 0 |
๐งฐ Tech-Stack
This project build with modern frameworks to get a sustainable and fast experience. Following technologies, frameworks and libraries are used:
๐ How to create a new db-collection
The instructions are based on the usage of lt cli
If you want to create a new feature with new values inside the database (for example a whole new collection), you need to follow a few steps:
- Switch to the api folder:
cd projects/api
- Create a new server module via lt cli:
# Type lt and switch to server and then module
lt
# Or type the following to get there in one step
lt server module
-
Follow the instructions to create the new module.
-
When you submit your creation, there will be a new folder inside your api with a few files, which are necessary for all operations, you want to do with that new collection.
-
To be able to see and use those changes inside your app, you have to generate those types. Therefore we first switch to our app:
cd projects/app
- Now just type the following command:
pnpm run generate-types
- The updated types are generated and are ready to be used inside your app.
๐ข Deployment
To deploy the project and use new features, you need to follow these steps:
- Push or merge changes in the dev-branch
The changes automatically get deployed on the dev system
- Push or merge changes in the test-branch
The changes automatically get deployed on the test system
- Push or merge changes in the main-branch
The changes automatically get deployed on the production system
New deployments keep the old database. Make sure that your system might not work properly with the new features and an old db-instance
Build identity / drift detection
App and API are deployed together but versioned independently. To tell at a glance which build is live โ and whether the two containers match after a rollout โ every deployment bakes the git commit SHA into both images via the APP_VERSION_COMMIT build arg (fed from the CI commit SHA, see docker-compose.yml + .gitlab-ci.yml):
- The API reports it at
GET /metaand in the/health-checkbuild indicator. - The App shows + compares both builds under
/app/admin/systemand warns when the App and API commits differ (a sign of a partial / stale rollout).
Version numbers are per-component and may legitimately differ; only the commit is compared. Local builds without CI report unknown and never trigger the warning.