OpenSupports is a simple and beautiful open source ticket system
Go to file
ivan e6fb52791e Ivan - Add Unit testing for MailTemplate [skip ci] 2016-07-14 19:31:23 -03:00
client Revert "Revert "Ivan - OS-18 - Create dashboard pages placeholders [skip ci]" [skip ci]" [skip ci] 2016-07-06 12:57:10 -03:00
server Ivan - Add Unit testing for MailTemplate [skip ci] 2016-07-14 19:31:23 -03:00
tests Merged in create-ticket/comment (pull request #18) 2016-07-08 04:02:55 -03:00
.gitignore [Ivan Diaz] - Move folder client architecture 2016-04-17 18:43:11 -03:00
LICENSE [Ivan Diaz] - Add GPL license [skip ci] 2015-12-29 18:31:35 -03:00
README.md README.md edited online with Bitbucket [skip ci] 2016-06-30 21:04:33 +00:00

README.md

OpenSupports v4.0

Build Status

Getting up and running FRONT-END (client folder)

  1. update sudo apt-get update
  2. Clone this repo
  3. Install node 4.x version
    • sudo apt-get install curl
    • curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
    • sudo apt-get install -y nodejs
  4. Install npm sudo apt-get install npm
  5. Install gulp sudo npm install -g gulp
  6. Go to repo cd os4-react
  7. Install dependences npm install
  8. Rebuild node-sass npm rebuild node-sass
  9. Run gulp dev
  10. Go to the main app: http://localhost:3000/app or the component demo http://localhost:3000/demo
  11. Your browser will automatically be opened and directed to the browser-sync proxy address
  12. Use gulp dev --api to disable fixtures and use the real php server api (it must be running at :8080).

Now that gulp dev is running, the server is up as well and serving files from the /build directory. Any changes in the /src directory will be automatically processed by Gulp and the changes will be injected to any open browsers pointed at the proxy address.

Production Task

Just as there is the gulp dev task for development, there is also a gulp prod task for putting your project into a production-ready state. This will run each of the tasks, while also adding the image minification task discussed above. There is also an empty gulp deploy task that is included when running the production task. This deploy task can be fleshed out to automatically push your production-ready site to your hosting setup.

Reminder: When running the production task, gulp will not fire up the express server and serve your index.html. This task is designed to be run before the deploy step that may copy the files from /build to a production web server.

Frontend Unit Testing

  1. Do the steps described before
  2. Install mocha "sudo npm install -g mocha"
  3. Run npm test to run the tests

Getting up and running BACK-END (server folder)

  1. Clone this repo
  2. Install PHP 5.6
  3. Create MySQL Database
  4. Install composer
  5. Go to cd os4-react/api
  6. Run composer install
  7. Run the server with php -S localhost:8080
Create MySQL Database
  1. Install mysql-server

    Ubuntu

    sudo apt-get install mysql-server

    Cent OS

    sudo yum install mysql-server /etc/init.d/mysqld start

  2. Access the mysql shell

    mysql -u root

  3. Create a new database

    CREATE DATABASE development;

  4. Run the MySQL server

    sudo /etc/init.d/mysql start

BACKEND API RUBY TESTING
  1. Install ruby sudo apt-get install ruby-full
  2. Install mysql dev dependencies sudo apt-get install libmysqlclient-dev libmysqlclient16 ruby-dev
  3. Install bundle sudo gem install bundler
  4. Go to test folder cd os4-react/tests
  5. Install project dependencies sudo gem install bundler Test can run by using executing run-tests.sh file.