Skip to content
Simple Task Management App Backend built using RoR, MySQL, Ruby
Ruby HTML JavaScript CSS CoffeeScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
db
lib
log
public
spec
tmp
vendor/assets
.editorconfig
.env
.gitignore
.rspec
.rubocop.yml
.rubocop_todo.yml
.ruby-version
Dockerfile
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru
docker-compose.yml

README.md

Project Features

  1. CRUD Operations
  2. Filters
  3. Full-Text Search
  4. 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.

Run in Postman

Installation

These instructions will help setup the project locally.

  1. Clone the repository

git clone https://github.com/neha9t/task-management-app

  1. Follow the instructions here to install RVM. Make sure to source rvm as mentioned at the end of the installation instructions.

  2. Install Ruby-2.4.0 using rvm install ruby-2.4.0

  3. Install MySQL by doing

For ubuntu

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

For Mac

// TODO - Verify instructions on Mac. brew install mysql

  1. Install a Javascript runtime sudo apt-get install nodejs.

  2. Install bundler using gem install bundler.

  3. cd into the project directory and run bundle install.

  4. Setup the database and run migrations.

  • Go to config/database.yml and change your username and password to your MySQL credentials so that the app can access the database.

  • Run rake db:create.

  • Run rake db:migrate.

For production run RAILS_ENV=production rake db:create db:migrate

  1. Finally run rails s and go to http://localhost:3000.

Running the tests

10.Run : rake spec to run model and controller tests

11.Run : bundle exec rspec to run controller tests

  1. For specific tests, run : bundle exec rspec ./spec/controllers/task_controller_spec.rb:<line-number>
You can’t perform that action at this time.