install medusa locally
Medusa store front - nextjs
npx create-next-app -e https://github.com/medusajs/nextjs-starter-medusa my-medusa-storefrontenviroment
create a file name .env.local with the bellow content
# Your Medusa backend, should be updated to where you are hosting your server. Remember to update CORS settings for your server. See – https://docs.medusajs.com/usage/configurations#storefront-corsNEXT_PUBLIC_MEDUSA_BACKEND_URL=http://14.225.192.9:9000MEDUSA_BACKEND_URL=http://14.225.192.9:9000# Your Stripe public key. See – https://docs.medusajs.com/add-plugins/stripeNEXT_PUBLIC_STRIPE_KEY=# Your PayPal Client ID. See – https://docs.medusajs.com/add-plugins/paypalNEXT_PUBLIC_PAYPAL_CLIENT_ID=# Your MeiliSearch / Algolia keys. See – https://docs.medusajs.com/add-plugins/meilisearch or https://docs.medusajs.com/add-plugins/algoliaNEXT_PUBLIC_SEARCH_APP_ID=NEXT_PUBLIC_SEARCH_ENDPOINT=http://14.225.192.9:7700NEXT_PUBLIC_SEARCH_API_KEY=d46924535f6dbd1265bb8bc6d9449bbbbafc42774532d8fb6e61e8fd93ad374bNEXT_PUBLIC_SEARCH_INDEX_NAME=products{"results":[{"name":"Default Search API Key","description":"Use it to search from the frontend","key":"68c75edcd7c8870f26e9ed7634a606039d83921a2e26980c2ed230cdfd78419f","uid":"03ac91c5-1d78-42b0-a454-801a2ec91f8c","actions":["search"],"indexes":["*"],"expiresAt":null,"createdAt":"2022-11-17T05:27:32.787978091Z","updatedAt":"2022-11-17T05:27:32.787978091Z"},{"name":"Default Admin API Key","description":"Use it for anything that is not a search operation. Caution! Do not expose it on a public frontend","key":"955c76892541eaa6c0f5423d4c2c4da8d418437181ed7071c08d9a3e705c1494","uid":"c306ed4d-817b-47e9-89d7-5b94a6c82bd5","actions":["*"],"indexes":["*"],"expiresAt":null,"createdAt":"2022-11-17T05:27:32.695365841Z","updatedAt":"2022-11-17T05:27:32.695365841Z"}],"offset":0,"limit":3,"total":2}