App-Structure
Business Logic

Business Logic

NextJs Firebase Classic is equipped with predefined business logic that can be fully customized to meet your specific needs. Below is an overview of the core business logic modules:

Auth Logic

The Auth Logic module manages all aspects of user authentication. This includes the logic for user login, registration, and authentication via both email and social media channels. Social media authentication can be enabled or configured through the Firebase Console (opens in a new tab).

Members Logic

The Members Logic module is responsible for handling operations related to members. This includes the logic for adding, removing, and fetching member data to and from the database. It plays a crucial role in managing the user base within the application.

Task Logic

The Task Logic module oversees the business logic associated with tasks. It handles operations such as adding, removing, and fetching tasks from the database. This module is essential for effective task management within your application.

Team Logic

Team Logic is dedicated to managing teams within the application. It provides the necessary logic for adding, removing, and fetching teams to and from the database. This module is pivotal for organizing and collaborating within team structures.

Users Logic

The Users Logic module takes care of operations related to users. This includes adding, removing, and fetching user data to and from the database. Additionally, it encompasses logic for updating user profiles and managing user profile images. This module is central to maintaining and enhancing user experiences.

Api Directory Logic

Some server-side logic were defined in the default Api folder that comes with Next.js. These were defined to be utilised by making request to the enpoints their functionalities are well documented in the code.

UseFirebase

Note: The file named useFirebase incorporates logic that is part of Firebase's standard authentication functionality. It is not custom-designed but rather a group of methods that seamlessly utilise the built in functionalities of Firebase.

Feel free to explore and tailor these business logic modules to align with your specific application requirements. Each module is designed to provide a solid foundation for common functionalities, allowing you to focus on customizing the application to suit your unique needs.