6amMart

View Categories

Mandatory Setup (Web)

Run an existing react project on IDE #

  • Run the purchased and downloaded NextJS project on your preferred IDE.
  • Before running the project in your local machine,
    • You have to set your CodeCanyon username and purchased license key in your admin panel.
    • You have to change your project .env.development and .env.production-> NEXT_PUBLIC_BASE_URL variables with your activated admin url as base url.

TIP

Recommended tutorial is below 👇

Change Base URL #

To change the base URL follow the steps given below –

Add NEXT_PUBLIC_BASE_URL  variable in both env files. Then assign your URL as a variable value. For example:

  • Must remember that don’t put slash(/) at the end of your base url.
  • Use your admin url as base url.
  • First you have to install your admin panel. For example: If your admin url is https://your_domain.com/admin then base url will be https://your_domain.com .
  • Create .env.production and .env.development file in your project
NEXT_PUBLIC_BASE_URL=Your URL

Add Google Map API Key #

NEXT_PUBLIC_GOOGLE_MAP_KEY = YOUR_MAP_API_KEY_HERE

TIP

Recommended tutorial is below 👇

Setup Firebase for Push Notification #

TIP

Recommended tutorial is below 👇

Social Logins #

For using social logins of Facebook and Google, you need to add app keys and secret keys.

Go to <project>/src/utils/staticCredential.js

export const google_client_id="xxxxxxxxx";
export const fb_app_id = "000-0000";

Add your google client id and facebook app id there.