Figlet Server
Figlet Server is a sample Web-App-DB application that renders Figlet text.
Installation
-
Clone this repository using Git.
-
Use NPM to install the dependencies required for this server.
npm install
Usage
- Set the following optional environment variables:
Environment Variable | Description | Example |
---|---|---|
FIGLET_SERVER_DB_URL |
Database URL | postgres://figlet:password@db:5432/figlet |
FIGLET_SERVER_PORT |
HTTP Port to listen to | 3000 |
FIGLET_SERVER_CORS_WHITELISTED_DOMAINS |
Whitelisted CORS domain | www.domain1.com,www.domain2.com |
- Run the following command to run the Express server.
node index.js