-
Notifications
You must be signed in to change notification settings - Fork 81
InsurancePro CRM Installation Guide
Node js Setup
Download Node.js :
Visit the official Node.js website (https://nodejs.org/) and download the LTS (Long-Term Support) version. LTS versions are more stable and recommended for most projects.
Install Node.js:
Run the installer you downloaded and follow the installation instructions. Make sure to include npm (Node Package Manager) during installation, as it comes bundled with Node.js.
Verify Installation:
Open a terminal or command prompt and type the following commands to verify that Node.js and npm are installed :
node -v
or npm -v
MongoDB Compass Setup (optional) Click on: https://docs.mongodb.com/compass/current/install/
Extract the ZIP File: Locate the ZIP file and extract its contents to a directory of your choice on your computer.
Open a Terminal: Open a terminal or command prompt on your computer. This is where you'll run the necessary commands to set up and run the React project.
Navigate to Project Directory: Use the cd command to navigate to the directory where you extracted the contents of the ZIP file. For example : cd path/to/project-directory
Install Dependencies:
In the project directory, there should be a package.json file that lists the project's dependencies. Run the following command to install these dependencies :
npm install
OR npm i
Change Base Url: Go to Project Directory Open constant.js file change baseUrl to your Server URL to connect to the backend Ex: baseUrl: 'http://127.0.0.1:5000/'
Start the Development Server:
Once the dependencies are installed, you can start the development server to run your React application locally :
npm start
Access the Application: After the development server starts successfully, you'll see an output indicating that the application is running. Open your web browser and navigate to http://localhost:3000
Extract the ZIP File: Locate the ZIP file and extract its contents to a directory of your choice on your computer.
Open a Terminal: Open a terminal or command prompt on your computer. This is where you'll run the necessary commands to set up and run the React project.
Navigate to Project Directory:
Use the cd command to navigate to the directory where you extracted the contents of the ZIP file. For example :
cd path/to/project-directory
Install Dependencies: In the project directory, there should be a package.json file that lists the project's dependencies. Run the following command to install these dependencies :
`npm install` OR `npm i`
Create .env File : Create .env file in your project directory
Ex :SECRET_KEY = abc123456xyz DB_URL = mongodb://localhost:27017/ PORT = 5000 DB_NAME = Demo
Start the Development Server:
Once the dependencies are installed, you can start the development server to run your React application locally :
npm run dev