Skip to content

A full-stack web application called "Gamble site" built on Ruby, Sinatra with Sinatra, SQLite3 database in the backend. Also created RestAPIs for data and routing. Hosted the application on Heroku cloud service.

Notifications You must be signed in to change notification settings

shr1611/Ruby_Sinatra_Full_stack_App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Submission by: Shruti Jagadeesh Bhat (W1587845)

  1. Link to the application: https://shrutisinatraapp.herokuapp.com/

  2. Login details: (Use this to login there) Username: "ruby" Password: "password"


  1. Folder details: my database name is "login.db" my main ruby file is "session.rb"

  2. Database details: CREATE TABLE "credentials" ( "username" VARCHAR(50) NOT NULL, "password" VARCHAR(50) NOT NULL, "total_lost" INTEGER, "total_won" INTEGER, "total_profit" INTEGER, PRIMARY KEY("username"));

Current credentials stored in the database table:

irb(main):073:0> Credential.all
=> [#<Credential @username="ruby" @password="password" @total_lost=99430 @total_won=5200 @total_profit=-94320>, #<Credential @username="user" @password="pass" @total_lost=0 @total_won=0 @total_profit=0>]

Currently the code is set to [username:"ruby", password:"password"]

The './' redirects to login page.

About

A full-stack web application called "Gamble site" built on Ruby, Sinatra with Sinatra, SQLite3 database in the backend. Also created RestAPIs for data and routing. Hosted the application on Heroku cloud service.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages