This is a coding challenge and my first time to use Ember.js. This app is a basic customer support ticket platform, wherein customers can create and view the status of their tickets. Agents can see all opened tickets, and can view monthly report of closed tickets. Admins can manage mostly everything.
You will need the following things properly installed on your computer.
Clone the repository or download and uncompress the code
$ git clone git@github.com:warrenchaudhry/ticketing.git
$ cd ticketing
There are two folders for this application. 0. ticketing_backend - Ruby on Rails API backend
- ticketing_frontend - Ember.js frontend application
$ cd ticketing_backend
- Install the Rubygems dependencies
$ bundle install
It is highly recommended for you to use a virtual environment with user-based libraries instead of system-based. Check out https://rvm.io , for example.
- Be sure to change the credentials in
.env
file and please check the configuration inconfig/database.yml
for any modifications before creating the database.
DATABASE_USERNAME=mysqlusername
DATABASE_PASSWORD=mysqlpassword
- Create database and migration
$ rails db:create
$ rails db:migrate
- Seed the tables
$ rails db:seed
- The project should work from here on, but if it has been updated with new dependencies, pull the code again, and run
$ bundle install
. - Run the tests
$ rake
- Start the application
$ rails server
$ cd ticketing_frontend
$ npm install
$ bower install
Start the application
$ ember server
Visit your app at http://localhost:4200.
Once both applications are running, you can access the application with the following data.
There should be given users:
Type | |
---|---|
admin1@email.com | Admin |
agent1@email.com | Support |
customer1@example.com | Customer |
For each account password is password2016
.
- PDF report for closed tickets
- Users management (add/update/delete)
- Search functionalities
- Lack of tests
- Comments for tickets
- Page should redirect to
/
or/login
after logout - Select tags not selecting option equivalent to model value
- Darwin 14.5.0
Darwin Kernel Version 14.5.0: Mon Aug 29 21:14:16 PDT 2016; root:xnu-2782.50.6~1/RELEASE_X86_64 x86_64
- Ruby
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin14]
- Rails
5.0.0.1
- Gem
2.6.6
- Bundler
Bundler version 1.13.0
- ember-cli
2.8.0
- Node
6.5.0