An open API service indexing awesome lists of open source software.

https://github.com/oybekkayumov/rails-react-app

Ruby on Rails and React App
https://github.com/oybekkayumov/rails-react-app

api db git rails react

Last synced: 3 months ago
JSON representation

Ruby on Rails and React App

Awesome Lists containing this project

README

          

# Rails - Rect App

## 1
1. add new rails api app
2. add posts
3. seed 20 posts
4. rails test

## 2
1. add /api/v1 and Api::V1::PostsController
2. npm create vite@latest with name client, React, JS
3. cd client
npm install
npm run dev

4. npm install dotenv
5. create .env.development file
6. add client/src/features/posts/PostsList component
7. fetch posts from API
8. add useState and useEffect
9. show posts in React

## 3
1. create post show page in React
2. npm i react-router-dom, restart frontend
3. add React routes

## 4
1. create a new post
2.