Aug 22, 2024
/api/v1./api/v1:
API and v1 in routes.PostsController into controllers/api/v1/ directory.npm create veet@latest to create a project.client).dotenv for managing environment variables..env.development file in the client root:
VITE_API_URL for accessing the API..env.development to .gitignore to prevent uploading sensitive data.rails s.npm run dev.PostsList component to display posts.useEffect to fetch posts from the Rails API on component load.useState.constants.js file to manage environment-aware API URL.