https://github.com/andrijzyn/ror-cors
🔻 Shy clicky button 🙈
https://github.com/andrijzyn/ror-cors
rails ruby vite vue
Last synced: 3 months ago
JSON representation
🔻 Shy clicky button 🙈
- Host: GitHub
- URL: https://github.com/andrijzyn/ror-cors
- Owner: andrijzyn
- Created: 2024-12-09T02:03:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-13T05:43:57.000Z (over 1 year ago)
- Last Synced: 2025-03-03T00:24:52.529Z (over 1 year ago)
- Topics: rails, ruby, vite, vue
- Language: Ruby
- Homepage:
- Size: 90.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Conducting a test of the **Ruby on Rails server** through CORS and the **Vite + Vue frontend**

# Project Setup
## Prerequisites
- Ruby and Node.js installed
- Bundler and npm (or yarn) installed globally
## Installation
1. **Clone the repository:**
```bash
git clone https://github.com/andrijzyn/RailsAsAPI-CORS.git
```
2. **Navigate to the project directory:**
```bash
cd RailsAsAPI-CORS
```
3. **Install Ruby dependencies:**
```bash
bundle install
```
4. **Install JavaScript dependencies:**
```bash
yarn install
```
## Database Setup
- **Run migrations:**
```bash
bin/rails db:migrate
```
## Running the Development Server
1. **Start the Rails server:**
```bash
bin/rails server -b 0.0.0.0 -p 3000 -e development
```
2. **Start the frontend development server:**
```bash
npm run dev
```
## Building for Production
- **Precompile assets:**
```bash
RAILS_ENV=production bin/rails assets:precompile
```