0.13.2 • Published 4 years ago

livesandbox v0.13.2

Weekly downloads
3
License
(Mozilla Public L...
Repository
github
Last release
4 years ago

livesandbox

in-browser JavaScript IDE

v 0.13.0

An in-browser JavaScript Web Application IDE with live execution, console output, and application display.

Requirements:

  • NodeJS runtime
  • MariaDB server

Installation:

  1. Clone the GtHub repo.

  2. In the console from the root folder of the project, type:

    $ npm install

  3. Restore the backup of the database from the ./database folder into your MariaDB server.

  4. The database login information is located in config/db.config.js. Either copy these credentials or create db credentials of your own and copy them into this file.

  5. In the console from the root folder of the project, type:

    $ node index.js

Changing the User Password

Since there is as yet no admin console, if you want to change the password for the initial user, in the console from the root folder of the project, type:

$ node hashpassword.js <password>

Copy the resulting hash and use a SQL editor to update the hash field in the users table:

UPDATE users set hash = '<hash>' WHERE userID = 6;

There are now two users in the database, "user" and "rmunn". Both use a password of "password".

Notes

There are a couple of example apps saved as part of the default user's account.