Customer support ticket is a portal that allows customers/users to open ticket for an issue they're facing using our app and the request will be processed by an agent.
Before you begin, ensure you have met the following requirements:
Ruby, Rails, Node Yarn
Windows/Linux/Mac
machine..Clone this application repository:
git clone [email protected]:abruzy/support-ticket.git
Change into the repository directory on your local machine:
cd your-repository-directory
Install the application gem dependencies:
bundle install
Create a .env
file for the application environment variables in the application root directory:
sudo nano .env
Set up the .env
file with the following environment variables. Also, please replace the DATABASE_USER
and DATABASE_PASSWORD
environment values with your own values:
DATABASE_NAME=openemrs_development
DATABASE_USER=your-database-user
DATABASE_PASSWORD=your-database-password
DATABASE_HOST=127.0.0.1
DATABASE_PORT=5432
Create the database for your development environment:
rails db:create
Create all the necessary database tables:
rails db:migrate
Install the foreman gem on your local machine for assets-precompilation:
gem install foreman
Starting the rails server using rails server
isn't ideal since we also want to run the assets-precompilation at the same time. We have a Procfile
and Procfile.dev
files set up for this. So you can start the rails server and the run assets-precompilation at the same time using the command below:
PORT=3002 foreman start -f Procfile.dev
rspec
or bundle exec rspec
to run all specs/coverage
/coverage/index.html
after running specs--- For Users ---
--- Admin ---
You can make a user an admin by following these steps:
open up your terminal
enter this command below
rails c
user = User.find(1)
user.update_attribute(:admin, true)
NOTE: substitute the find(1) with the id of the user you want to make an admin
You can find all the user registered on the platform by entering this command below on your rails c
User.all
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated. To contribute to this app, follow these steps:
Alternatively see the GitHub documentation on creating a pull request.
If you want to contact me you can reach me at [email protected] or https://abubakardiallo.com
Distributed under the MIT License. See LICENSE for more information.