Skip to content

NaokiIshimura/SimpleDataGraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Graph

This is a web application that can easily display received data graphically.

About

  • Receive data with POST.
  • Graphically display the received data.

Sample Request

$ curl http://xxx.xxx.xxx/data -X POST \
-H "X-Auth-Token:xxxxxxxxxx" \
-H 'Content-Type:application/json' \
-d '{"data1":1,"data2":2, "data3":3, "data4":4, "data5":5}'

Sample Image

image1.png (1122×972)

image2.png (1122×818)

Set up

  1. bundle install
$ bundle install
  1. migration
$ rake db:migrate
  1. language (option)
# config/initializers/i18n.rb
Rails.application.config.i18n.default_locale = :en
  1. server address (option)
# config/application.rb
config.server = 'localhost:3000'
  1. mail setting (option)
# config/environments/development.rb
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
# config/environments/development.rb
  :user_name => 'gmail_address',
  :password => 'password'
  1. server start
$ rails server -b 0.0.0.0

How to use

Please start up the application and check how to use page.

About

WEB application which graphs data received by POST.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published