Skip to content

doguabaris/corev-host

Corev Host

Corev Host is the back-end and dashboard monorepo that powers the Corev-CLI tool. It provides:

  • A RESTful API for managing dynamic configuration files (used by CLI)
  • A dashboard built with Next.js

Repository structure

/bin                 # Entry point for corev-host
/packages
  ├── dashboard      # Frontend (Next.js)
  └── server         # Backend (Express.js + MongoDB)
.eslint.config.mjs   # Shared ESLint config
tsconfig.json        # Shared TypeScript config

Environment setup

This project requires an .env file at the root of the repository to run the server.

You can create it manually or copy it from the provided .env.dist template:

cp .env.dist .env

Next, open the file and update it with your own settings (like MongoDB URI and JWT secret).

This file is ignored in version control. You must create or copy it manually before starting the server.

Getting started

Install dependencies

npm install

Run in development mode

npm run dev

This will:

  • Start the Express server (packages/server)
  • Launch the Next.js dashboard (packages/dashboard)

Build and start production

npm run build
npm run start

Testing

npm run test

Runs backend tests under packages/server/tests.

Lint & Format

npm run lint        # Run ESLint
npm run format      # Run Prettier
npm run format:all  # Format with Prettier, then apply ESLint --fix

Publishing

This is not a publishable package on its own. It is intended to be run as a host backend for Corev-CLI.

Contributing

See CONTRIBUTING.md for contribution guidelines.

License

Corev-CLI is released under the MIT License.

About

Corev's web-based configuration management service.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors