curl -X POST -H 'Content-Type: application/json' -d'{"gender":"male","first_name":"First","last_name":"Last","email":"email@email.com","street":"Address","city":"12345 City","interest":"ausland","country":true,"camp":"ausland","lang":"de"}' https://hls-052-nka-backend.herokuapp.com/save
download xlsx file from heroku: https://hls-052-nka-backend.herokuapp.com/auth/download with the credentials provided in the .env.sample
file
GET /
- returns the route namePOST /save
- you need to send some params to this route and they will be saved indb.json
file. For the time being i am saving all the params that are sent. When we will have the form defined will allow only those paramsGET /auth/download
- will download the excel file after the user provides the credentials set in.env
fileGET /auth/reset-db
- will truncutedb.json
In order to be able to send email you need to copy .env.sample
to .env
and adjust the values inside
$ npm run start-emails
Browser will automatically opens the list of templates in http://localhost:3000
$ npm run start-emails --lang=en
--lang=en
is default
$ npm run emails-build