/nimble

An open source code editor for the web, written in JavaScript, HTML and CSS.

Primary LanguageJavaScriptMIT LicenseMIT

#How to setup Nimble with MakeDrive server

Setup Webmaker Login Server

You need to have Webmaker Login for Authentication to connect to MakeDrive WebSocket Server.

Make sure you have forked and cloned Webmaker Login then run the following steps:

Install npm modules:

$ npm install

Use the default configuration:

$ cp env.sample .env

Run the server:

$ node app.js

You will now have Webmaker Login server running on port 3000 you can test by visiting http://localhost:3000/account. Also, make sure you create an account.

Setup Nimble (Brackets) in your lcoal machine

Step 01: Make sure you have forked and clone Nimble.

$ git clone https://github.com/[yourusername]/nimble --recursive

Step 02: Install its dependencies

$ npm install
$ git submodule update --init

Step 03: Run Nimble:

There are multiple ways to run Nimble.
You can use Apache Webserver, host on github pages or use Python WebServer.

Assuming you have Nimble running on port 8080. Now you can visit http://localhost:8080/src.

Step up MakeDrive in your local machine

Step 01: Make sure you have forked and clone MakeDrive repo.

$ git clone git@github.com:[yourusername]/makedrive.git --recursive
$ cd makedrive

Step 02: After you have cloned and cd MakeDrive in your local machine then you need to install all of MakeDrive dependencies

First you will need grunt-cli to be installed globally using npm

$ sudo npm install grunt-cli -g

Install npm modules:

$ npm install

Install submodule's dependencies

$ grunt init

Step 03: Copy the environment file

$ cp env.dist .env

Step 04: configure ALLOWED_CORS_DOMAINS to allow Nimble to connect.

Assuming you have Nimble running on http://localhost:8080

export ALLOWED_CORS_DOMAINS='["http://localhost", "http://localhost:80", "http://localhost:8080", "http://localhost:7777", "http://localhost:9090", "http://localhost:5001"]'

Step 05: Run MakeDrive server

$ npm start

Now you will have MakeDrive running on port 9090 http://localhost:9090.


After installation

After you have everything setup and running you can now test by running Nimble and start creating files and see it in action by visiting http://localhost:8080/src. Also, make sure you already have Webmaker Login server running and you are logged in.

Watch our demo to see Nimble in action.

If you have any question feel free to ask on #nimble IRC channel on the Mozilla Network.