Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amygrinn/cronpush
Schedule custom push notifications through the browser
https://github.com/amygrinn/cronpush
Last synced: about 1 month ago
JSON representation
Schedule custom push notifications through the browser
- Host: GitHub
- URL: https://github.com/amygrinn/cronpush
- Owner: amygrinn
- Created: 2020-10-02T13:29:01.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-10-28T15:19:20.000Z (about 4 years ago)
- Last Synced: 2024-08-03T01:38:20.324Z (4 months ago)
- Language: TypeScript
- Size: 555 KB
- Stars: 15
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
- awesome-repositories - amygrinn/cronpush - Schedule custom push notifications through the browser (TypeScript)
README
# Cron Push
## Quickstart
1. `docker-compose up -d`\
Start the mysql database
See `docker-compose` section2. `npm i`\
Install node dependencies3. `npm start`\
Build the project and watch for changes. After each build, the lint and
serve scripts will be run.## Environment
1. Node environment variables: `src/environment.ts`
- You may create a `.env` file in the project root directory to modify defaults
- Shell environment variables **will** be passed on to node and will overwrite
variables listed in the `.env` file
2. MySQL environment variables: `mysql/Dockerfile`
- Shell environment variables **will not** be passed on to MySQL## docker-compose
- docker-compose up -d\
Start the mysql container in the background- docker-compose stop\
Stop the mysql container- docker-compose down\
Destroy the mysql container. Any changes made to the database will be lost- docker-compose up --build -d\
If any changes are made to the `docker-compose.yml` file or the `mysql` folder, add
the `--build` flag to the command when starting to incorporate the changes## Build
```
npm run build
```## Serve
```
npm run serve
```## Tests
Tests use the database specified by the environment variable MYSQL_TEST_DB . The database will be cleared completely for each test
### Standalone
```
npm test
```### During development
`npm start` will start the tests in debug mode.\
Attach a debugger to the default node debug port, `9229`, and continue past the initial breakpoint to run the tests.\
The test will be restarted when the code changes or by typing `rs` into the terminal to restart manually.