This is a Rails project that demonstrates file upload functionality using Active Storage. It allows users to upload and manage files. In production environment the uploaded images are stored in cloud! ⛅ (AWS s3).
Before cloning this repository, please ensure that you have the following installed on your local machine:
- Ruby > 3
- Rails > 7
To get started with the project, follow these steps:
- Clone the repository:
git clone git@github.com:iak97/active-storage-file-upload.git
- Change into the project directory:
cd active-storage-file-upload
- Install the required gems:
bundle install
-
Edit the
config/database.yml
file with your database credentials. -
Create the database and run the migrations:
rails db:create db:migrate
- Start the Rails server:
rails s
- You can now access the site in your web browser at http://localhost:3000.
If you encounter any issues please let me know. Give a ⭐ if you like this project!!!