Welcome to ChatRoom! This guide will help you get started with setting up and running the application on your local machine. ๐
Deployed Link: https://chatroom-thoriqas.onrender.com
Before you begin, ensure you have the following installed on your machine:
- Ruby (version 3.3.2 or newer)
- Rails (version 7.2.0.beta2 or newer)
- Bundler (a dependency manager for Ruby)
- Node.js and Yarn (for managing JavaScript dependencies)
Follow these steps to get the application up and running:
First, clone the repository to your local machine using git:
git clone https://github.com/Muhthoriqas/ChatApp-RubyOnRails
cd ChatApp-RubyOnRails
Install the necessary Ruby gems and JavaScript packages:
bundle install
yarn install
Set up the database by running the following commands:
rails db:create
rails db:migrate
rails db:seed
Launch the Rails server to run the application locally:
rails server
You can now access the application by navigating to http://localhost:3000 in your web browser. ๐
Here are some additional commands you might find useful:
- Run Tests: rails test
- Open Rails Console: rails console
- Generate New Resource: rails generate <resource_name>
If you encounter any issues, here are some common solutions:
- Postgres Issue : Check here
- Bundler Issues: Ensure you have the correct version of Bundler installed. You can update Bundler with gem install bundler.
- Server Issues: Check for any error messages in the terminal and ensure all dependencies are installed.
We welcome contributions! Please fork the repository and create a pull request with your changes. Make sure to follow the code style and include tests for any new features or bug fixes.