samloh84 / node-figlet-server

Sample Web-App-DB application that renders figlet text.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Figlet Server

Figlet Server is a sample Web-App-DB application that renders Figlet text.

Installation

  1. Clone this repository using Git.

  2. Use NPM to install the dependencies required for this server.

    npm install

Usage

  1. 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
  1. Run the following command to run the Express server.
node index.js

License

MIT

About

Sample Web-App-DB application that renders figlet text.


Languages

Language:HTML 62.2%Language:JavaScript 36.1%Language:Dockerfile 1.4%Language:Shell 0.4%