reorganize project structure to fit similar to Mobile App (still follow Next Convention using).
(app/main) folder grouping will contain all our pages
Everything extra will go in app folder/ (i.e. types, helper folder)
Anything outside app folder will contain things like configs (tsconfig, nextconfig, etc) and assets
importing anything from api, types, components, helpers (these files are in /app folder ) should be done like that following:
import { getEvents, getEventLogs } from '@/api/firebaseUtils'; import { SHPEEvent } from '@/types/events';
UNIQUE FILES:
Types files (committees.ts, events.ts, and user.ts) should not be touched. These file are copy-paste from MobileApp and should only be changed if MobileApp changes them
helper files (timeutils) similar should not be touched
firebaseUtils.ts file - Add functions from MobileApp firebase utils function as needed and must be added at the bottom of file
Overview
This PR contain the following:
reorganize project structure to fit similar to Mobile App (still follow Next Convention using).
importing anything from api, types, components, helpers (these files are in /app folder ) should be done like that following:
import { getEvents, getEventLogs } from '@/api/firebaseUtils'; import { SHPEEvent } from '@/types/events';
UNIQUE FILES: