Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/erezrokah/serverless-monitoring-app
https://github.com/erezrokah/serverless-monitoring-app
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/erezrokah/serverless-monitoring-app
- Owner: erezrokah
- License: mit
- Created: 2019-02-17T11:20:18.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-04-08T01:08:46.000Z (9 months ago)
- Last Synced: 2024-04-08T02:33:09.035Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 9.27 MB
- Stars: 16
- Watchers: 5
- Forks: 10
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Serverless Monitoring App
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
## Architecture
![Application architecture](images/serverless-monitoring-app.png)
## Prerequisites
[Nodejs](https://nodejs.org/en/) (at least version 16)
[Yarn](https://yarnpkg.com/lang/en/)
Amazon AWS account and `awscli` installed and configured:
Serverless [CLI](https://serverless.com/framework/docs/getting-started/)
## Repository structure
This repository uses [lerna](https://lernajs.io/) and yarn workspaces to handle dependencies.
The React frontend app sits under `frontend/`.
"Back-end" services sit under `services/`.
Typescript is used across the repository.
## Setup
Install Dependencies
```bash
yarn install
```Setup environment file
```bash
cp -f services/monitoring-common/environment/config.example.json services/monitoring-common/environment/config.dev.json
sed -i '' 's/REGION_VALUE/us-east-1/g' services/monitoring-common/environment/config.dev.json
sed -i '' 's/ADMIN_EMAIL_VALUE/[email protected]/g' services/monitoring-common/environment/config.dev.json
```## Deploy
Deploy all services and frontend
```bash
yarn deployAndRunE2eTests --commitId "0000000000000000" --stage dev --forceAll true
```## Run Prettier
```bash
yarn prettier
```## Run Linter
```bash
yarn lint
```## Run Tests
```bash
yarn test
``````bash
yarn coverage
```## Cleanup
Removes all services and frontend
```bash
yarn remove:all:dev
```