Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dangdungcntt/actions-logger
https://github.com/dangdungcntt/actions-logger
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dangdungcntt/actions-logger
- Owner: dangdungcntt
- Created: 2019-09-11T16:04:39.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-01T04:06:57.000Z (almost 2 years ago)
- Last Synced: 2024-04-14T07:49:58.447Z (9 months ago)
- Language: JavaScript
- Size: 682 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: readme.md
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 \
:
```