8000 GitHub - blackjmxx/koa: Koa template for Platform.sh. · GitHub
[go: up one dir, main page]

Skip to content
blackjmxxPublic

About

Koa template for Platform.sh.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

Koa for Platform.sh

Deploy on Platform.sh

This template demonstrates building the Koa framework for Platform.sh. It includes a minimalist application skeleton that demonstrates how to connect to a MariaDB server for data storage. It is intended for you to use as a starting point and modify for your own needs.

Koa is a lightweight web framework for Node.js.

Features

  • Node.js 10
  • MariaDB 10.2
  • Automatic TLS certificates
  • npm-based build

Customizations

The following files have been added to a basic Koa configuration. If using this project as a reference for your own existing project, replicate the changes below to your project.

  • The .platform.app.yaml, .platform/services.yaml, and .platform/routes.yaml files have been added. These provide Platform.sh-specific configuration and are present in all projects on Platform.sh. You may customize them as you see fit.
  • An additional module, config-reader-nodejs, has been added. It provides convenience wrappers for accessing the Platform.sh environment variables.

References

About

Koa template for Platform.sh.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0