Coder Social home page Coder Social logo

bulksecuritygeneratorprojectv2 / platformsh__language-examples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from platformsh/language-examples

0.0 0.0 0.0 14.42 MB

Basic examples of using various languages with Platform.sh.

License: MIT License

Shell 0.35% JavaScript 14.45% Python 19.73% PHP 20.08% Java 28.36% Go 14.43% HTML 2.60%

platformsh__language-examples's Introduction

Platform.sh Language Examples microsite

This project builds a working copy of every language/service combination that Platform.sh supports. It primarily serves as a component of the documentation. Only the latest version of each is included.

Structure

  • services.yaml contains the latest version of every service Platform.sh offers that an application container can connect to.

  • /main contains a trivial index container.

  • Each other directory is an application container for the latest supportable version of each supported language.

  • routes.yaml defines a route to each language container at /$language.

App container specification

  • Each container SHOULD connect to every service possible.
  • Each container MUST gracefully handle running locally.
  • Each container MUST gracefully handle running in a subdirectory itself, based on the Platform.sh route.
  • /$service MUST respond with a code example to connect to $service. It should be a bare string, not HTML.
  • /$service/output MUST respond with the output of running the code for that service. That is, all code examples are "life". It should be a bare string, not HTML.
  • / MUST respond with a collapsible collection of all services and the output of them. (See PHP as the reference implementation.)
  • All other paths MUST respond with the bare string "Sorry, no sample code is available."
  • Every container SHOULD make use of the appropriate Platform.sh client library to the extent reasonable. It does NOT need to use parts of the library that are not relevant.
  • The implementation for each language SHOULD follow standard practices and conventions for the language in question so as to make a good impression for that language.
  • The implementation for each language MAY use popular 3rd party libraries where appropriate, but keep the overhead small.
  • Code examples should be as short as possible but no shorter.

License

The license for the projects built by this tool vary.

All code unique to this repository is released under the MIT License.

platformsh__language-examples's People

Contributors

chadwcarlson avatar crell avatar otaviojava avatar colliercz avatar demosdemon avatar nickanderegg avatar dependabot[bot] avatar spk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.