Add: Implemented React Router and Axios integration, and added test c…#34
Conversation
…omponents to verify the setup.
|
@Aditya-JOSH Make sure all checks are passed so that I can merge! |
|
@Limeload I wanted to highlight two separate issues that need attention: Lint Errors Secret Key Base Issue Let me know if you need any help with these. |
|
@Aditya-JOSH RAILS_MASTER_KEY is added on our repo! |
|
@Aditya-JOSH You can resolve conflicts and all checks should be passing now. |
…omponents to verify the setup.
Description
Implemented React Router for client-side navigation and integrated Axios for API communication in the React frontend. Added basic Login and Signup components styled with Tailwind CSS to verify routing and API setup. Successfully tested API connectivity with the Rails backend.
Note: Remember to add REACT_APP_API_URL=http://localhost:3000 in .env.development.local for proper API endpoint configuration.
Type of Change
Changes Made
react-router-domfor page navigation.axiosfor HTTP requests to the Rails API.services/api.jsfor centralized Axios configuration using environment variables.LoginandSignupcomponents with Tailwind CSS styling.App.jsto include routes for Login, Signup, and Categories..envfor API URL and port configuration.Testing
Describe how you tested these changes:
Screenshots (if applicable)
Related Issues
Closes #5