This is a React.js application using vite.
Always start by cloning the repository to your local machine (do not download the project files directly) using the following command:
git clone https://github.com/noufalrahim/syncly_fe.gitTo get started, first install the necessary dependencies:
npm installif any error occurs, run:
npm install --legacy-peer-depsVITE_CLERK_PUBLISHABLE_KEY=your_clerk_publishable_keynpm run devCopy and paste the url in a browser to verify everything is working fine http://localhost:2000
- Always make sure that you are working on a separate branch and not directly on the
mainbranch. This will help in keeping the codebase clean and organized. - Make sure that you have the latest changes from the
mainbranch before starting your work. You can do this by runninggit pull origin mainwhile on your branch. - After you have made changes, commit them to your branch and create a pull request to merge them into the
mainbranch.
- Write clear and descriptive commit messages that explain the changes you have made.
- Suggestions for commit messages:
feat: Add new featurefix: Correct issue with existing featurerefactor: Restructure code without changing functionalitydocs: Update documentationtest: Add or update testschore: Update dependencies or configuration
- Follow the code style guidelines defined in the
.eslintrcfile. - Run
npm run lintto check for linting errors and fix them before committing your code. - Use Prettier to format your code by running
npm run format.
- Use meaningful branch names that describe the feature or issue you are working on.
- Suggestions for branch names:
feature/add-authenticationfix/fix-bug-in-loginrefactor/update-user-model
- Create a pull request to merge your changes into the
mainbranch. - Assign reviewers to review your code and approve the pull request.
This folder contains static assets such as images, fonts, and other files that are served directly by the server.
The src folder contains the source code for the React application. It includes components, pages, styles, and other files that make up the frontend of the application.
The assets folder contains static assets such as images, fonts, and other files used in the application.
The components folder contains reusable React components that can be used across multiple pages in the application.
The hooks folder contains custom React hooks that can be used to share logic between components.
The lib folder contains utility functions and other helper code that is used throughout the application.
The redux folder contains the Redux store configuration, reducers, actions, and other files related to state management in the application.
The router folder contains the React Router configuration and routes for the application.
Visit Documentation for more information on the project structure.
- Version Control: Use Git to track changes and collaborate with others.
- Linting: Ensure your code follows style guidelines by using ESLint and Prettier.
- Debugging: Check your terminal or console for logs to troubleshoot issues.