mern-ecommerce | MERN Stack ecommerce site | Application Framework library
kandi X-RAY | mern-ecommerce Summary
kandi X-RAY | mern-ecommerce Summary
MERN Stack ecommerce site
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mern-ecommerce
mern-ecommerce Key Features
mern-ecommerce Examples and Code Snippets
Community Discussions
Trending Discussions on Application Framework
QUESTION
I am trying to understand various available AGL specific options that we can give in config.xml and I am referring to the link below
https://docs.automotivelinux.org/docs/en/halibut/apis_services/reference/af-main/2.2-config.xml.html
This is the sample config.xml file
...ANSWER
Answered 2020-Mar-06 at 09:48I figured out why we need this
required-api: param name="#target"
OPTIONAL(not compulsory)
It declares the name of the unit(in question it is main) requiring the listed apis. Only one instance of the param “#target” is allowed. When there is not instance of this param, it behave as if the target main was specified.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mern-ecommerce
clone the repo using this command git clone https://github.com/ashraf-kabir/mern-ecommerce.git
install npm packages install backend packages cd mern-ecommerce npm install install frontend packages cd client npm install
go to the parent folder of mern-ecommerce & create .env for connection, JWT_SECRET, BRAINTREE_MERCHANT_ID, BRAINTREE_PUBLIC_KEY and BRAINTREE_PRIVATE_KEY. cd mern-ecommerce sudo nano .env (ctrl+x to save & nano follow instruction there) sample code for backend .env MONGODB_URI=YOUR_MONGODB_URI JWT_SECRET=YOUR_JWT_SECRET BRAINTREE_MERCHANT_ID=YOUR_BRAINTREE_MERCHANT_ID BRAINTREE_PUBLIC_KEY=YOUR_BRAINTREE_PUBLIC_KEY BRAINTREE_PRIVATE_KEY=YOUR_BRAINTREE_PRIVATE_KEY
create another .env file inside client directory for REACT_APP_API_URL. cd mern-ecommerce/client sudo nano .env sample code for frontend .env REACT_APP_API_URL=YOUR_API_URL Instructions: for mongodb atlas database creation follow this tutorial->https://www.youtube.com/watch?v=KKyag6t98g8 you can use any random string as JWTSECRET for localhost REACT_APP_API_URL is http://localhost:5000/api but for heroku (server deployment) it will be different note: add .env on .gitignore for server deployment use secrets directly
deploy this project on your local server by using this command cd mern-ecommerce npm run dev note: both backend & frontend server will start at once with the above command.
Database Structure: (Table: columns) categories: _id, name, createdAt, updatedAt; orders: _id, status, products (Array), transaction_id, amount, address, user (Object), createdAt, updatedAt products: _id, photo (Object), sold, name, description, price, category, shipping, quantity, createdAt, updatedAt users: _id, role, history (Array), name, email, salt, hashed_password, createdAt, updatedAt
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page