Chario go is an open source groceries and food delivery platform
yarn
For starting the admin dashboard part with corresponding api data run below commands.
# for dev mode run below command
yarn dev:admin
- Go to
/packages/shop
folder. - Copy the contents of
.env.local.sample
into a new file called.env.local
- Put Your Stripe public api key in the
/packages/shop/.env.local
file'sNEXT_PUBLIC_STRIPE_PUBLIC_KEY
key.
For starting the shop part with corresponding api run below commands.
# for dev mode run below command
yarn dev:shop
If you want to test your production build admin or shop in local environment then run the below commands.
# build admin for production
yarn build:admin
# build api which in needed for local testing
yarn build:api
#start admin in production mode
yarn serve:admin
# build shop for production
yarn build:shop
# build api which in needed for local testing
yarn build:api
# start shop in production mode
yarn serve:shop
/packages/admin
: In this portion all the admin dashboard related coding and functions.
/packages/shop
: All the shop related coding and functions.
/packages/api
: API related code for both admin and shop section.
admin related api codes are in admin
folder
shop related codes are in shop
folder
vercel.com (previously known as now.sh)
If you want to host the template in vercel.com then follow the below command
- Navigate to
packages/api
- Now run below command
vercel
- After deploying the api you will get the api endpoint url. Put that url in the
packages/admin/.env
- also need to put it within
vercel.json
.
REACT_APP_API_URL={put_your_api_url_here}/admin/graphql;
- Navigate to
packages/admin
- Now run below command
vercel
- After deploying the api you will get the api endpoint url. Put that url in the
packages/shop/.env.local
andvercel.json
file.
NEXT_PUBLIC_STRIPE_PUBLIC_KEY= 'put_your_stripe_public_key'
NEXT_PUBLIC_GRAPHQL_API_ENDPOINT= '{put_your_api_url_here.}/shop/graphql'
- Navigate to
packages/shop
- Now run below command
vercel