How to Add Map API key and Configure Environment Variables
1. Go to Google Cloud Platform. Click here
2. Click on console.

3. Select your Firebase Project

4. While following this Official Documentation, you need to enable three APIs:
1) Places API, 2) JavaScript Map API, and 3) Geocoding API
Official Documentation for creating API key
5. Click on Enable to enable these APIs

6. Go to Credential Tab. You will find your web API keys.

7. Copy that key and paste it in the following file:
eRestro > .env > NEXT_PUBLIC_MAP_API_KEY
Additional Environment Variables Configuration
In addition to the Map API key, configure these environment variables in your .env file:
1. NEXT_PUBLIC_BASE_URL
This is the base URL for your API. Obtain this from your server configuration or backend team.
https://your backend url/app/v1/api
2. NEXT_PUBLIC_COUNTRY_CODE
Set this to your country code, e.g., "in" for India.
3. Firebase Configuration Values
- NEXT_PUBLIC_FIREBASE_APIKEY
- NEXT_PUBLIC_FIREBASE_AUTHDOMAIN
- NEXT_PUBLIC_FIREBASE_PROJECTID
- NEXT_PUBLIC_FIREBASE_STORAGEBUCKET
- NEXT_PUBLIC_FIREBASE_SENDER_ID
- NEXT_PUBLIC_FIREBASE_APPPID
- NEXT_PUBLIC_FIREBASE_MEASUREMENTID
To get these values:
- Go to the Firebase Console.
- Select your project.
- Click on the settings icon and select "Project settings".
- In the "General" tab, scroll down to the "Your apps" section.
- Here you will find all the required keys.
4. NEXT_PUBLIC_SSR
Set this to "false" to disable server-side rendering if not required. Adjust based on your project needs.
5. NEXT_PUBLIC_MAP_API_KEY
You can get your Map API key from the Google Cloud Console:
- Go to the Google Cloud Console.
- Create or select a project.
- Navigate to the "APIs & Services" section.
- Click on "Credentials".
- Create a new API key or use an existing one.
After obtaining the values, replace the placeholder text (xxxxxxxxxxxxxxxxxxxxxxxx) with the actual values in your .env file.
System Configuration Using .env file
You can set your API URL which fetches data from the server and a link to partner registration
page here. To configure these
You can find .env file in your root of the project.
NEXT_PUBLIC_BASE_URL=xxxxxxxxxxxxxxxxxxxxxxxx
NEXT_PUBLIC_COUNTRY_CODE="in"
NEXT_PUBLIC_FIREBASE_APIKEY = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
NEXT_PUBLIC_FIREBASE_AUTHDOMAIN = "xxxxxxxxxxxxxxxxxx"
NEXT_PUBLIC_FIREBASE_PROJECTID = "xxxxxxxxxxxxxxxxx"
NEXT_PUBLIC_FIREBASE_STORAGEBUCKET = "xxxxxxxxxxxxxxxxxxxxx"
NEXT_PUBLIC_FIREBASE_SENDER_ID = "xxxxxxxxxxx"
NEXT_PUBLIC_FIREBASE_APPPID = "xxxxxxxxxxxxxxxxxxxxxxxxxx"
NEXT_PUBLIC_FIREBASE_MEASUREMENTID = "xxxxxxxxxxxxxxx"
NEXT_PUBLIC_SSR = "false"
NEXT_PUBLIC_MAP_API_KEY = "xxxxxxxxxxxxxxxxxxxxxxxx"
System Configuration Using Config.js
It is necesary for to setup Currency Settings and other settings here in the config.js to
make your site work. To configure these
Go to src\@core\config.js file.
export const currencySettings = {
currencySymbolPosition: "start",
decimalPoints: 2,
currencyFormate: ",",
currencySymbol: "₹",
};
Create Your Own Language
1. Create Folder:
create your language folder in this
destination src\locales.
2. Create Your Newely Added Language
Labels: In your language folder
create
translation.json file.
In the translation.json
file
you can add
your
next web labels.
3. Add Your Language Code:
Add your language code in this line.
4. Your Language is Added:
Hurrey you successfully add your own
language in your next web.
Theme Color
Change Theme color to fit your needs.
Open src\theme.js file where you can set your desired primary color, danger color
or light color.