For any support please don't hesitate to contact us at Support Center. We provide 13 hours real-time support for our customers.
We would like to thank you for choosing Harri shop.
Getting started
Harri shop Next js Template for electric (Mobile,Laptop,Monitor,Hub,Kittle) etc
Requirements
There are system requirements in order to install and setup Harri shop template and its
components properly. Make sure that you are installed node.js and
Yarn.
After purchasing Harri shop template on themeforest.net with your Envato account, go to your
Download page. You can choose to download Harri shop template package which contains the following
files:
The contents of the template package downloaded from ThemeForest
harri-admin-panel - An admin-pnale Template file. this file you can edit and use for your business.
harri-backend - An backend file. this file you ca edit and use
for your business.
harri-front-end - An React Template file. this file you ca edit and use for your business.
Documentation - This folder contains what you are reading now :)
Backend Configuration
Please follow the instructions.
First setup your backend sever -
Edit .env. file
Configure your MongoDB database, watch this video MongoDB, after configuring you will find a mongo URI just put that on your .env file MONGO_URI variable.
The TOKEN_SECRET is just a random value for creating a secret token, you can use
whatever you want but make sure it is secret.
You need an email and password for using email verification and forget the password option. Use an email that you want to send messages to others when they register or request to forget the password. We use Nodemailer and the default email server for this. watch this video to create an app password for email
app-password.
After that put your email in the .env file EMAIL_USER and app password in the EMAIL_PASS variable. Also, need to Allow less secure apps to be ON, and access captcha for using this in production environment, see this
doc
STORE_URL=http://localhost:3000 // your client site url
ADMIN_URL=http://localhost:4000 // your admin-panel site url
To deploy a Node.js Express application on Vercel, you can follow these steps: -
Sign up for an account on Vercel if you don't have one already.
Connect your GitHub, GitLab, or Bitbucket repository where your Node.js Express application is hosted.
Import your repository on Vercel and select the Node.js Express project to be deployed.
Vercel will automatically detect your Express application and perform the necessary build and deployment steps.
Once the deployment is complete, you'll be able to access your application using the URL provided by Vercel.
When you import your GitHub repository on vercel by creating a project, you will see an option for Environment Variables, just click on that and give you a local .env all variable with the value. then click on deploy. Note first you will need to import and deploy backend, so that you can use that backend live url as harri-front-end and harri-backend and harri-admin-panel base url. screenshot
Note: Make sure your Express application is set up properly, including the correct dependencies, environment variables, and routes. You may also need to configure your application to work with Vercel's platform.
Once you successfully connect with MongoDB and configure .env then run "npm run data:import", it will run seed.js file and will import all demo data on the database. (Youwill find all demo data in the utils folder, change that data according to your need, also use staff email with real email for use of the forgetting password option) If everything is okay, then the backend configuration is done. Now you will find all demo data in your MongoDB database.
all setup are done then open your command line then run npm run start-dev this will be run your local site
Client Configuration
Please follow the instructions.
After Configure your .env.local file will look like this: -
NEXT_PUBLIC_STRIPE_KEY="your stripe key" //for use stripe, change with your stripe API key
NEXT_PUBLIC_API_BASE_URL=your api base url // base API URL, when run on
localhost/dev server.
To deploy a Next.js application on Vercel, you can follow these steps: -
Sign up for an account on Vercel if you don't have one already.
Connect your GitHub, GitLab, or Bitbucket repository where your Next.js application is hosted.
Import your repository on Vercel and select the Next.js project to be deployed.
Vercel will automatically detect your Next.js application and perform the necessary build and deployment steps.
Once the deployment is complete, you'll be able to access your application using the URL provided by Vercel.
When you import your GitHub repository on vercel by creating a project, you will see an option for Environment Variables, just click on that and give you a local .env all variable with the value. then click on deploy. Note first you will need to import and deploy backend, so that you can use that backend live url as harri-front-end and harri-backend and harri-admin base url. screenshot
Note: Make sure your Next.js application is set up properly, including the correct dependencies and environment variables. You may also need to configure your application to work with Vercel's platform.
Other Scripts
Open you command prompt
yarn lint:fix (This will format your code and fix auto fixable eslint error)
React Installation
Please follow the instructions in the video to see how you can install react on your hosting:
For local host -
Open you command prompt
npm install or npm install --legacy-peer-deps
npm run dev (will start the dev server at http://loaclhost:3000)
Basic Site Settings
Change Site Title, Favicon and Page Title
To change your Site title and Favicon open the Harri shop in your editor and go to the location
by following screenshot which are given bellow.
You can change title hereYou can change page title hereYou can change favicon here
Change Logo
To change logo and customize other header data do the following:
You can change logo here
Customize Menu
To customize menu do the following:
From the project folder go to src layoutmenu-data.jsOpen the menu you want to use
Then customize the menu
Customize the menu
Customize Footer
To customize footer data do the following:
From the project folder go to src layoutfooter.jsOpen the menu you
want to use
Then customize the footer data
Customize the footer
404
To change 404 and setting you can change by following this screenshot here.
From the project folder go to pages 404Open the menu you want to use
Then customize the 404 data
Customize the 404
Colors
To change color and setting you can change by following this screenshot here.
From the project folder go to public assetsscssutilscolor.scssOpen the menu you want to use
Then customize the color data
Customize the color
Typography
To change Typography and setting you can change by following this screenshot here.
From the project folder go to public assetsscsscomponentstheme.scssOpen the menu you want to use
Then customize the Typography data
Customize the Typography
Support
If you face any issue please contact us at
Support Ticket. We provide
15 hours real-time support for our customers.