This document provides an overview of the architecture of the Focus Forge Blocker project, including instructions on how to clone the repository, and run the backend (BE), frontend (FE), and Chrome extension.
The project is organized into the following main components:
- Backend (BE): Handles the server-side logic, including user authentication and data management.
- Frontend (FE): The user interface for the Focus Forge application, allowing users to manage their schedules and block lists.
- Chrome Extension: A browser extension that blocks websites based on the user's Focus Forge schedule.
To clone the repository, use the following command:
git clone https://github.com/yourusername/focus-forge-blocker.git
Navigate into the project directory:
cd focus-forge-blocker
-
Navigate to the backend directory:
cd backend
-
Install the required dependencies:
npm install
-
Start the backend server:
npm start
The backend server will run on
http://localhost:5000
.
-
Navigate to the frontend directory:
cd frontend
-
Install the required dependencies:
npm install
-
Start the frontend server:
npm start
The frontend application will run on
http://localhost:3000
.
- Open Chrome and go to
chrome://extensions/
. - Enable "Developer mode" in the top right corner.
- Click "Load unpacked" and select the
extension
folder from the cloned repository. - The extension will be installed and displayed in the Chrome toolbar.
- Automatic Synchronization: The extension automatically syncs with the user's Focus Forge account.
- Website Blocking: Blocks websites based on the user's schedule and block lists.
- Real-time Updates: Automatically updates every minute to ensure accurate blocking.
- Ensure that both the backend and frontend servers are running.
- Make sure you are logged in to the Focus Forge website.
- Check the console for any error messages if the extension is not functioning as expected.
For any issues or questions, please contact the development team at [email protected].