Skip to content

This is a simple task scheduler using web services and web application in Ruby on Rails. You can create, get collection or member task from web services and can check the logs through a web application

Notifications You must be signed in to change notification settings

Sohair63/Task-Scheduler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

Suggested tools

Installation

  • Ruby Version Manager - rvm
  • Git
  • MySQL
  • rvm

Important for Application

  • ruby 2.1.5p273 (install by using rvm)
  • gem install rails (version 3.2.13)

Steps to create and initialize the database

Create databases

$ rake db:create:all
$ rake db:schema:load
or
$ rake db:migrate

Steps to prepare the source code.

Create rvm gemset (if using RVM)

$ rvm --create use 2.1.5@schedular

Install gems

$ gem install bundler
$ gem install rails (version 3.2.13)

Change directory to "task_schedular" and start the web server:

$ cd [path_to]/task_schedular

Run following Commands:

$ bundle install

Create databases

$ rake db:create:all
$ rake db:schema:load
or
$ rake db:migrate

Start your server

$ rails server
or
$ rails s

Start Other Server

$ rake jobs:work

Open following link in browser

http://localhost:3000/

API LINKS

You can use POSTMAN (an extension of Google Chrome)

Import API END POINTS using POSTMAN through

OR

  • the file "TaskSchedular.json.postman_collection" (find this file in current folder)

Or can use other method to hit API calls with following credentials:

name: Task Name
path: Task Path
run_at: Time in valid ruby formate*

Note the ruby date formate should be valid or one of the following

1) 2015-08-19 19:35:46 +0500
2) Wed, 19 Aug 2015 14:40:57 UTC +00:00
3) Wed, 19 Aug 2015 14:40:57
4) Wed, 19 Aug 2015
5) 2015-08-19
6) 2015-08-19 19:35:46

About

This is a simple task scheduler using web services and web application in Ruby on Rails. You can create, get collection or member task from web services and can check the logs through a web application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published