Skip to content

Commit

Permalink
Merge pull request #35 from mean-expert-official/development
Browse files Browse the repository at this point in the history
Added SETUP.md document
  • Loading branch information
jonathan-casarrubias authored Dec 22, 2016
2 parents 2284736 + 98c3f60 commit b6bb882
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,6 @@ Always write a clear log message for your commits. One-line messages are fine fo

Most of the times you will need to add a new test or we may not be able to integrate it. Though, there are some cases when you don't need to add a unit test, like fixing a typo, adding a missing type, etc.

## Testing

Tests are being created and excecuted by using the Angular-CLI Tool, please refer to the official documentation.

````sh
$ cd to/fireloop.io
$ npm test
````

Thanks,
Jonathan Casarrubias, [MEAN Expert](http://mean.expert).
58 changes: 58 additions & 0 deletions SETUP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
How to locally setup FireLoop
==============

If you want to start contributing or just because you want to have FireLoop locally installed, then you will need to read the following steps:

## Clone FireLoop Repo
First of all you need to clone the FireLoop repository from GitHub.

````sh
$ git clone [email protected]:mean-expert-official/fireloop.io.git
````

## FireLoop CLI
The FireLoop CLI is a gateway that acts as an interface for the final user, thought it uses a couple of yeoman generators to work on the actual scaffolding.

Since the FireLoop CLI is for users public entrace, you will require to `$npm link` this specific project locally running.

> IMPORTANT: Make sure you globally uninstall previous versions of fireloop $ npm uninstall -g @mean-expert/fireloop
````sh
$ cd fireloop.io/fireloop-cli
$ npm install
$ npm link
````

The commands described above will install local copy of the FireLoop CLI running from the code you just cloned.

Any change you make within the fireloop-cli code, will be immediatly reflected within the command line interface functionality.

## FireLoop Generator
The FireLoop Generator is a yeoman generator that actually coordinates the setup of the project, sdk generations and it provides with the templates that transforms a regular LoopBack application into a FireLoop Application.

The FireLoop Generator is written in TypeScript, the source code can be located within the `generator-fireloop/src` directory.

When changes are made within the `generator-fireloop` source code and in order to test it, the very first thing you need to do is to compile the project:

````sh
$ cd fireloop.io/generator-fireloop/src
$ tsc
````

The commands described above will generate the JavaScript code into the `fireloop.io/generator-fireloop/generators` directory.

Now, in order for the local FireLoop client to use your code you will need install the code you just generated as follows:


````sh
$ cd fireloop.io/fireloop-cli
$ npm install ../generator-fireloop
````

Don't use the --save or --save-dev flags because we don't want to persist the local reference into the package.json.

After you install the compiled code into the FireLoop CLI you should be able see your modifications by using the fireloop command

````sh
$ fireloop
````

0 comments on commit b6bb882

Please sign in to comment.