In order to run this project you have to have installed node.js and npm. Once you have them, follow these steps:
- Clone this repo:
git clone https://github.com/nebur395/FitG-TFM
- Open a terminal on the root folder of this project.
- Run the command
npm install
. This must be done the first time only, in order to install the dependencies of the project. - Use the following command to start mongod:
sudo service mongod start
- Run
npm start
in order to launch two instances of the server on port 8080 (HTTP) and 8443 (HTTPS). Alternatively, you can also usenode server.js
. - Mobile client access: Run
cd ionic;ionic serve
in order to launch a mobile server. Espera a que el servidor de ionic este lanzado, abre un navegador web, y accede a la dirección http://localhost:8100. - Desktop client access: Open a web browser and type http://localhost:8080 for the HTTP page, or https://localhost:8443 for the HTTPS equivalent.
In order to run the Protractor tests of this project you have to follow these steps:
- Check that Protractor is working by running
node_modules/protractor/bin/protractor --version
. - Now start up the Selenium Server:
node_modules/protractor/bin/webdriver-manager start
. This will output a bunch of info logs. You can see information about the status of the server athttp://localhost:4444/wd/hub
. - Finally, execute
node_modules/protractor/bin/protractor test/protractor/conf.js
.
In order to run the Mocha tests of this project you only have to execute the following command: npm test
In order to have a look at the project's API you have to follow these steps:
- Run
npm start
in order to launch the application. - JSON: Open a web browser and type http://localhost:8080/swagger.json to display the application's API in a JSON.
- UI Web: Open a web browser and type http://localhost:8080/api-docs/ to display the application's API in a UI web.
EditorConfig helps developers maintain consistent coding styles between different editors and IDEs. It is a file format for defining coding styles and a collection of text editor plugins that enable editors to read the file format and adhere to defined styles. You need to create a .editorconfig file in which you define the coding style rules. It is similar to the format accepted by gitignore.
These editors come bundled with native support for EditorConfig. Everything should just work: BBEdit, Builder, CLion, GitHub, Gogs, IntelliJIDEA, RubyMine, SourceLair, TortoiseGit, WebStorm.
To use EditorConfig with one of these editors, you will need to install a plugin: AppCode, Atom, Brackets, Coda, Code::Blocks, Eclipse, Emacs, Geany, Gedit, Jedit, Komodo, NetBeans, NotePadd++, PhpStorm, PyCharm, Sublime Text, Textadept, textmate, Vim, Visual Studio, Visual Studio Code, Xcode