- Node 16
- Project in Pinata
Needs generate PINATA_API_KEY
and PINATA_SECRET_API_KEY
creating a
Pinata project and then should set as enviroment variables
docker run --pull allways --rm -d \
--name smmp-api -p 3000:3000 \
-e PORT=3000 \
-e HOST=0.0.0.0 \
-e STAGE=dev \
-e PINATA_API_KEY=$PINATA_API_KEY \
-e PINATA_SECRET_API_KEY=$PINATA_SECRET_API_KEY \
rogrp6/smmp-api:dev
1 - Create .env
file and copy content of .env.sample
, then fill the variables
2 - Execute
npm run start
// or use nodemon:
npm run watch
Clear Redis
node scripts/redis-clear.js
- Save postman file:
docs/smmp-api.postman_collection.json
- Generate Open API file, example using
postman2openapi
on Windows:
"./bin/postman2openapi/postman2openapi.exe" -f json docs/smmp-api.postman_collection.json > docs/smmp-api.openapi.json