https://github.com/liquibase/better-botz-gui-at-glitch
A Better Botz user interface built on Glitch using Node.js, on Express, with DataStax Apollo as the highly available backing store!
https://github.com/liquibase/better-botz-gui-at-glitch
Last synced: 6 months ago
JSON representation
A Better Botz user interface built on Glitch using Node.js, on Express, with DataStax Apollo as the highly available backing store!
- Host: GitHub
- URL: https://github.com/liquibase/better-botz-gui-at-glitch
- Owner: liquibase
- License: apache-2.0
- Created: 2020-09-14T14:01:49.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-26T08:34:26.000Z (over 1 year ago)
- Last Synced: 2025-03-24T09:46:57.881Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 14.4 MB
- Stars: 1
- Watchers: 1
- Forks: 4
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# better-botz-gui-at-glitch
A sample Glitch website built with Node.js using Express and DataStax Apollo.
To start the app:
First add a `.data` directory and then copy your security bundle file to the path. An example of it being setup is shown in the app.js file in the following code snippet.
``` javascript
const path = './.data/secure-connect.zip';
```Next, run `npm install` in the root directory of the project to retrieve all fo the project dependencies.
Now run the server as shown:
``` bash
USERNAME=databaseUsername PASSWORD=databasePassword bash -c 'node bin/www'
```Once running, check out the following paths for examples of data retrieval:
http://localhost:3000/datareport >> this is a response via generated jade template w/ the data results.
http://localhost:3000/data >> this is a direct data response of just the JSON response via API get call.
http://localhost:3000/ >> verifies express.js is running with Jade templates!