This project consists of a Rails API backend and a Vite React frontend.
Ensure you have the following installed on your system:
- Git: For cloning the repository.
- Node.js
- npm or yarn
- Ruby: (version 3.4.4, recommended to use rbenv or rvm)
- Bundler: (Ruby gem for managing Rails dependencies)
- SQLite3
git clone <repository-url>
cd sunsetAppNavigate to the backend directory:
cd backenda. Install Ruby Dependencies:
bundle installb. Setup Database: This will create the SQLite database, run migrations, and seed initial data.
rails db:setupc. Start the Rails Server:
By default, runs on http://localhost:3000.
rails serverThe API backend should now be running.
Navigate to the frontend directory (from the project root):
cd vite-fronta. Install Node.js Dependencies: Using npm:
npm installc. Start the Vite Development Server: Using npm:
npm run devThis will start the frontend app on http://localhost:5173.