This is base project for FGACYC Link Project where we handle connect group functionality and users.
To install pnpm, use one of these commands based on your operating system:
Using npm:
npm install -g pnpmUsing Homebrew (macOS):
brew install pnpmUsing Windows (PowerShell):
iwr https://get.pnpm.io/install.ps1 -useb | iexpnpm devpnpm installsrc/
├── components/ <-- Shared components
├── graphql/ <-- GraphQL queries and mutations
├── pages/ <-- Pages
├── modules/ <-- Modules (most of where our work will be)
├── providers/ <-- Providers / Contexts etc.
├── routes/ <-- Routes
│
...
- React Query
- GraphQL Playground You can use this playground to test your GraphQL queries and mutations.
React Query is used to manage all data fetching and caching.
The GraphQL usage is simplified to use useGraphQL hook.
Simple Example:
const { query, ready } = useGraphQL();
const { data, refetch } = useQuery({
queryKey: ["person"],
queryFn: async () => {
const data = await query(fetchSinglePerson, {
name: "fga.tech@gmail.com",
});
return data;
},
enabled: ready,
});- Tailwind CSS We will be using Tailwind CSS for styling.
PS: If you want to use third-party libraries, please check with the team first. It will mostly be fine, the only thing we need to ensure is the design is consistent and aligned with the designs.
- Recommended to use Cursor or VS Code for coding.
- Install the recommended extensions, there should be a prompt to install them.
If not, go to extensions tab and search
@recommendedfor all the recommended extensions.
There will be 3 long evergreen branches:
prod- PRODUCTION, protected, only PRs frompreprodwill be merged intoprod.dev- Branch out from here for development and merge back intodev.preprod- Protected, only PRs fromdevwill be merged intopreprod, this will be done for each pre-release. This is where we will do testing and QA.
Try to have your branch name as feature/your-feature-name or fix/your-fix-name and provide meaningful commit messages.
We will be trying to record all the changes in the CHANGELOG.md file.