This project is a simple express app built with Node.js.
This project requires Node.js and Yarn to be installed in your environment.
After checking out the code repository, run the following command to install dependencies:
yarn install
The .env
file contains the configuration settings for the server application.
The port on which the server listens for incoming HTTP requests.
Comma-delimited list of origins that may submit HTTP requests.
This is the only endpoint supported by the application. Method must be GET.
Response body is JSON that conforms to the following interface:
{
message: !String
}
Deployment consists of the following steps in the location where the application is to server HTTP requests:
- Get the code.
- Install the production dependencies.
- Configure environment variables.
- Start the application.
- To get the code, clone the repository.
- To install the production dependencies, run the following command:
yarn install --production
. - To configure the environment variables, create (or overwrite) the
.env.
file with the appropriate settings. - To start the application, run the following command:
yarn start
.
The application automatically logs incoming HTTP requests using the common Apache format.