Giter Site home page Giter Site logo

shuddha2021 / rubyconnect Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 18 KB

A professional web application built with Ruby, Sinatra, and SQLite.

Ruby 19.53% HTML 80.47%
bootstrap contactform database educational modaldialog ruby sinatra sqlite3 usermanagement webapplication professionalapp

rubyconnect's Introduction

Professional Ruby App

This is a professional Ruby application that uses Sinatra and SQLite3 to create a web application with Bootstrap styling.

Features

  • Bootstrap Styling: The application uses Bootstrap for a clean and modern user interface.
  • User List: The application queries data from a SQLite3 database and displays a list of users.
  • Contact Form: The application includes a contact form in a modal dialog.

Technologies Used

  • Ruby: The application is written in Ruby.
  • Sinatra: Sinatra is used as the web application framework.
  • SQLite3: SQLite3 is used as the database for storing user data.
  • Bootstrap: Bootstrap is used for styling the web application.
Screenshot 2024-04-09 at 1 07 05 PM

The application connects to a SQLite3 database using the sqlite3 gem. The database is set up in the setup_db.rb file, where a users table is created and populated with sample data.

Project Structure

The project consists of three main files:

  • index.rb: This is the main HTML file for the web application.
  • app.rb: This is the main Ruby file that sets up the Sinatra application and routes.
  • setup_db.rb: This file sets up the SQLite3 database.

Getting Started

To get started with this project:

  1. Clone the repository.
  2. Install the required gems with bundle install.
  3. Set up the database with ruby setup_db.rb.
  4. Start the Sinatra application with ruby app.rb.

Why This Project Is Useful

This project serves as a great starting point for learning how to create a web application with Ruby and Sinatra. It demonstrates how to set up a SQLite3 database, how to query data from the database, and how to display the data in a web page.

Contributing

Contributions to this project are welcome. Please fork the repository and create a pull request with your changes.

rubyconnect's People

Contributors

shuddha2021 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.