Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dangdungcntt/actions-logger


https://github.com/dangdungcntt/actions-logger

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# actions logger

### Install dependencies
```bash
npm install
```

### Prepare `.env` file
```bash
cp .env.sample .env
```

### Prepare database
collection: `actions`

indexes:
```json
{"id": 1}
```

```json
{"text": 1}
```

```json
{"text": "text"}
```

### Run
```bash
node index.js
```

### Create user
```bash
curl -X POST \
http://localhost:3000/api/auth/register \
-d '{
"username": "",
"password": "",
"token": ""
}'
```

### Build Docker Image
```bash
docker build -t : .
```

### Docker Run
```bash
docker run -d --name actions_logger \
-e APP_PORT=3000 \
-e JWT_KEY=jwtsecretkey \
-e JWT_TTL=2592000000 \
-e ADMIN_TOKEN=admintokenkey
-e MONGODB_URI=
--restart always \
:
```