Running the Project
This guide explains how to run your eBroker web project locally for development and testing purposes before deploying to production.
Prerequisites
Before running the project, ensure you have:
- Node.js (version 18 or higher) installed
- All configuration settings properly set up in your
.env
file - Firebase and other integrations configured as needed
Installing Dependencies
First, you need to install all the required dependencies:
- Open VS Code terminal by pressing
CTRL+J
in Windows/Linux orCMD+J
in macOS - Run the following command:
npm i
This will take some time to download all necessary packages. Wait until the installation completes.
Starting Development Server
After the dependencies are installed, you can start the development server:
- In the same terminal, run:
npm run dev
- This command will start the development mode of your application
- Wait for the compilation to complete
- The terminal will show the local URL where your application is running (typically
http://localhost:3000
)
Testing Your Application
Once the development server is running:
- Open your web browser and navigate to the URL shown in the terminal
- Check if all features are working as expected
- Test user flows like registration, login, property search, etc.
- Verify that all integrations with Firebase, Google Maps, etc. are functioning properly
Making Changes
During development:
- Make changes to your source files
- The development server will automatically reload to reflect your changes
- Check the terminal for any compilation errors
- Verify your changes in the browser
Stopping the Server
To stop the development server:
- Go to the terminal where the server is running
- Press
CTRL+C
(orCMD+C
on macOS) - Confirm the termination if prompted
Next Steps
After confirming that everything is working correctly in development mode, you can proceed to:
- Build and deploy your project for production
- Set up SEO for your web application if needed
- Configure sitemap generation for better search engine visibility