The purpose of this project is to provide the means for users to sign up for our beta platform newsletter.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
What things you need to install the software and how to install them
- Node.js (v12 preferably)
- PostgreSQL 11
- SendGrid API key
- Discord webhook URL
- Clone
git clone https://github.com/freelyis/placeholder-api
- Install dependencies
npm ci
- Populate the env file
cp ./.env.example .env
nano .env
See .env.example
for a template config.
Run the linter using
npm run-script lint
Run index.js
with your preferred process monitor (pm2 probably)
The base URL for requests is https:/freely.is
.
This can be changed in the .env
file.
Type | Route | Parameters |
---|---|---|
POST | /api/submitinterest |
JSON Body { "email": "string" } |
GET | /api/verifyinterest/:UUID |
URL UUID token assigned to the user on signup |