https://github.com/kimvex/observer-cron-manager
Manager of cron-jobs and execution of file for environments local or remote 🎊⏰💡
https://github.com/kimvex/observer-cron-manager
cron cron-jobs cronjob cronjob-scheduler js node nodejs observers
Last synced: 7 months ago
JSON representation
Manager of cron-jobs and execution of file for environments local or remote 🎊⏰💡
- Host: GitHub
- URL: https://github.com/kimvex/observer-cron-manager
- Owner: kimvex
- Created: 2022-03-12T22:50:48.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-03-22T05:05:06.000Z (over 3 years ago)
- Last Synced: 2025-01-18T08:27:28.302Z (9 months ago)
- Topics: cron, cron-jobs, cronjob, cronjob-scheduler, js, node, nodejs, observers
- Language: JavaScript
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Observer Cron Manager
##### - BETA
Observer cron manage work using system of cronjob by linux for create taks with time of execution. This project allow you schelude request to endpoints remote or locals, also execute local cronjobs for execute localfiles if install without docker. Also allow work with severals databases for save configurations and groups of crons.
## Installation
Can install cloning the project and up docker compose
```js
docker-compose up -d
```The default database for management of configuration is `sqlite`, you can change type database in the file `docker-compose.yml` before execute the command of `docker-compose up`
After of up docker container you can access the front and api by
|Host| Description|
|-------------------------|--------------------------|
|`http://localhost:3000` | Front of application web |
| `http://localhost:3000/api` | Backend api |### Manual installation
If you do not want use docker for execute local files, only clone project and make changes of `.env` file
|Variable|Value|Description|
|--------|--------|--------|
| PORT | 3000 | Number of port for server|
|CRON_STORE| /etc/cron.d/ | Location of cronstore |
| NODE_BIN | /usr/bin/node | Location of binary of node |
| ENV_DATABASE | sqlite | Type of data base for use: `sqlite`, `mysql`, `postgres`, `mongodb` |Install package of npm
`npm install`
Also set variable to environment `ENV_DATABASE=databasetype` and execute file `npm_database_package.sh`, this script install database local and install package of npm for this type database selected.
- First step `export ENV_DATABASE=databasetype`
- Second step `chmod +x npm_database_package.sh`
- Last step `./npm_database_package.sh`So far only ubuntu packages are supported