-
Notifications
You must be signed in to change notification settings - Fork 1
Home
O V E R V I E W
- BACK-END: rethinkDB (realtime database JSON-based)
- MIDDLE TIER: node.js + Horizon (act as expose API/functions to front-end application)
- FRONT-END: Javascript + HTML
R E Q U I R E M E N T S
- Memory: minimum 2 Go (ref: https://rethinkdb.com/docs/memory-usage/)
D E P L O Y. T H E. C O M P O N E N T S.
(These instructions are written for Windows)
Install node.js If you are here, you know how.
Install RethinkDB
Download the installation package for Windows, go through all the questions of the wizard. Once the installation is complete, move rethinkdb.exe under c:\Windows.
Install Horizon using node.js
- Open a command line and run "npm install -g horizon"
Testing everything is working
- Create a folder: c:\path_to_your_project_directory
- Create a basic horizon project
- open a command line
- cd to the folder hosting the folder previously created (cd c:\path_to_your_project)
- deploy a basic project
- run "hz init _directory", _directory being the folder previously created
- Start the server
- open a command line
- cd to the folder hosting the folder previously created (cd c:\path_to_your_project)
- run "hz serve _directory --dev" (note: some instructions will appear)
-Open a browser and navigate to http://127.0.0.1/8181, a scrolling message will/should appear.
everything is working? Well celebrate, then delete everything under _directory, copy all files from https://github.com/lucienhetu/my-mind?files=1 to _directory, run "hz serve _directory", the browse and navigate to http://127.0.0.1:8181/?id=nodes
REFERENCES
- Horizon : https://github.com/rethinkdb/horizon-docs
- Horizon > CLI : http://web.archive.org/web/20171116120650/http://horizon.io/docs/cli/
- RethinkDB : https://rethinkdb.com/docs/ & https://githublists.com/lists/d3viant0ne/awesome-rethinkdb
Note to self: add instruction for OSes other than windows - https://rethinkdb.com/docs/install/, ...)