{"repo":"sanidhyy/ecommerce-app","free":true,"listed":false,"github":"https://github.com/sanidhyy/ecommerce-app","clone":"git clone https://github.com/sanidhyy/ecommerce-app.git","description":"E-commerce app using next.js, sanity and stripe payments.","language":"JavaScript","stars":16,"topics":["css","ecommerce","js","nextjs","react","reactjs","sanity"],"license":"MIT","category":"ecommerce","readme_excerpt":"E-COMMERCE WEB APPLICATION USING NEXT JS 📌 How to setup this App? 1. Make sure Git and NodeJS is installed 2. Yarn is faster than Npm. So use Yarn. 3. To get started, create .env file in root folder. 4. Contents of .env file 5. Clone this repository to your local computer. 6. Open terminal in root directory. Run npm install or yarn install 7. Now, cd sanity-ecommerce-app . Run npm install or yarn install again. 8. Now all required packages are installed, let's setup sanity. 9. Create an account in sanity 10. In terminal, type sanity init to initialize our sanity project. 11. Type sanity start to start sanity studio on localhost. URL will be shown in terminal. 12. After going to localhost, login in with your account. Now, your account is connected with this project. 13. To get NEXT PUBLIC SANITY PROJECT ID and NEXT PUBLIC SANITY TOKEN , go to sanity. 14. Copy your project id as shown below: 15. Under API Tab , go to tokens section and create a token. You can name it whatever you want. Just Don't fotget to copy your project token. You will not be able to copy later. 16. Now, you add products and banner from http://localhost:3333 to your project through sanity. NOTE: If you want to use same images as mine, you can find all images in public/assets folder. You can use your own images as well, but make sure they are in .webp format or you have to define your own images format in pages/api/stripe.js 17. After sanity is setup successfully, it's time to setup online payments with str","default_branch":null,"files":null,"tree":[],"storefront":"/r/sanidhyy","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sanidhyy/ecommerce-app/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}