Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shuddha2021/rubyconnect
A professional web application built with Ruby, Sinatra, and SQLite.
https://github.com/shuddha2021/rubyconnect
bootstrap contactform database educational modaldialog professionalapp ruby sinatra sqlite3 usermanagement webapplication
Last synced: 6 days ago
JSON representation
A professional web application built with Ruby, Sinatra, and SQLite.
- Host: GitHub
- URL: https://github.com/shuddha2021/rubyconnect
- Owner: shuddha2021
- Created: 2024-04-09T15:19:34.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-05-01T20:05:53.000Z (8 months ago)
- Last Synced: 2024-11-06T19:50:20.838Z (about 2 months ago)
- Topics: bootstrap, contactform, database, educational, modaldialog, professionalapp, ruby, sinatra, sqlite3, usermanagement, webapplication
- Language: HTML
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.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.