- CRUD Operations
- Full-Text Search
- Autocomplete functionality
Trying out the project
I have hosted the latest code on an Vultr instance. You can import the Postman collection (by clicking the button below) into the Postman app to try out the API's without any installation.
These instructions will help setup the project locally.
- Clone the repository
git clone https://github.com/neha9t/task-management-app
Follow the instructions here to install RVM. Make sure to source rvm as mentioned at the end of the installation instructions.
Install Ruby-2.4.0 using
rvm install ruby-2.4.0
Install MySQL by doing
You would be prompted to set a root password during the installation.
sudo apt-get update sudo apt-get install mysql-server sudo apt-get install libmysqlclient-dev sudo mysql_secure_installation
// TODO - Verify instructions on Mac.
brew install mysql
sudo apt-get install nodejs.
Install bundler using
gem install bundler.
cdinto the project directory and run
Setup the database and run migrations.
Go to config/database.yml and change your
passwordto your MySQL credentials so that the app can access the database.
For production run
RAILS_ENV=production rake db:create db:migrate
- Finally run
rails sand go to http://localhost:3000.
Running the tests
rake spec to run model and controller tests
bundle exec rspec to run controller tests
- For specific tests, run :
bundle exec rspec ./spec/controllers/task_controller_spec.rb:<line-number>