Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/simplicitesoftware/nodejs-demo

Basic Node.js(R) demo using node.js & browser API
https://github.com/simplicitesoftware/nodejs-demo

Last synced: about 14 hours ago
JSON representation

Basic Node.js(R) demo using node.js & browser API

Awesome Lists containing this project

README

        

![Simplicité Software](https://platform.simplicite.io/logos/logo250-grey.png)
* * *

Node.js® demo
=================

This project is a simple web frontend example using
the [Simplicité® node.js® & brower JavaScript API](https://www.npmjs.com/package/simplicite)
to connect to a Simplicité® demo backend instance from the **server-side**.

Usage
-----

This project is packaged to deploy on CloudFoundry but can also be used locally.

To run it locally you need to install (or update) the required packages:

```bash
npm install
```

Then you can run the application by:

```bash
npm run start
```

The following environment variables are required to point to the appropriate Simplicité® backend instance:

- `SIMPLICITE_URL`: URL of the instance (e.g. `http://:[/]`)
- `SIMPLICITE_USERNAME`: user name
- `SIMPLICITE_PASSWORD`: user password

- the `/` root page displays the demo product catalog
- the `/user` page displays information about the user

Usage on CloudFoundry
---------------------

Adjust the `manifest.yml` to your needs:

- The deployment name, host and domain
- The host, port, root environment variables pointing to the above Simplicité® instance

To deploy manually use:

```bash
cf push
```

To undeploy manually use:

```bash
cf delete
```

License
=======

Copyright 2014-2024 Simplicité Software

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at:

[](http://www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.