vkorenev / cloudstate-samples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cloudstate Sample Applications

Prerequisites

The following assumes that you have completed the steps for setting up your local environment as well as creating an account and project. If you have not done this you must follow the instructions here:

Sample application layout

Grab the sample application from github:

https://github.com/lightbend/cloudstate-samples

Shopping Cart

Event sourced example with PostgreSQL statefulstore. Simple shop front end to interact with.

Chat sample

CRDT chat with simple front end web interface, friends storage, and presence state.

Sample event sourced application

Event sourced example with PostgreSQL statefulstore. This example provides a back-end service that implements a shopping cart like functionality, allowing for requests to be send against it in order to store, retrieve and delete data.

Dev notes

Nodes.js version

We pick up node.js version 12 as default in all node.js related projects. Based on node.js website, currently version 12 is recommended for most users. Based on node.js release page, the odd number release has only 6 months support cycle, so we don't set it as default. If you plan to try the different node.js version in sample projects, you can

  • modify .nvmrc file, so command nvm install and nvm use will pick up the node.js version you set.
  • modify package.json file, especially "engineStrict" and "engines.node" fields. It affects the version check when running npm install

Maintenance notes

License

The license is Apache 2.0, see LICENSE-2.0.txt.

Maintained by

This project is NOT supported under the Lightbend subscription.

This project is maintained mostly by @coreyauger and @cloudstateio.

Feel free to ping above maintainers for code review or discussions. Pull requests are very welcome–thanks in advance!

Disclaimer

DISCLAIMER.txt

About


Languages

Language:JavaScript 99.1%Language:TypeScript 0.7%Language:Scala 0.2%Language:Shell 0.1%Language:Java 0.0%Language:Dockerfile 0.0%Language:HTML 0.0%