{"repo":"gavinmgrant/omitplastic","free":true,"listed":false,"github":"https://github.com/gavinmgrant/omitplastic","clone":"git clone https://github.com/gavinmgrant/omitplastic.git","description":"A full-stack e-commerce affiliate app focusing on reducing plastic consumption that uses Next.js and Prisma.","language":"TypeScript","stars":11,"topics":["ecommerce","nextjs","plastic-pollution","react","cherrio","scraping","prisma","typescript"],"license":null,"category":"ecommerce","readme_excerpt":"OmitPlastic This full-stack app is designed to help people reduce plastic consumption by purchasing products with less plastic content. However, this full-stack e-commerce affiliate app that uses Next.js, Prisma, and MySQL can be adapted for other types of products. The affiliate marketing program used is Amazon Associates. Technology TypeScript - strongly typed programming language ReactJS - user interface library NextJS - React framework for production Tailwind CSS - CSS framework MySQL - relational database management system Prisma - Node.js and TypeScript Object Relational Mapper Neon - database platform SWR - React hooks for data fetching Vercel - platform for deploying and hosting React Spring - component animations Cheerio - library for parsing and manipulating HTML and XML Setup Clone this repository to your local computer. Install the dependencies for the project: npm install or yarn install Create a free account and database on Neon. Bootstrap a basic Prisma setup: npx prisma init Create the tables in the database using Prisma: npx prisma db push Open the example.env file and replace the dummy connection URL DATABASE URL with 'postgresql:// ' Run the application locally: npm run dev or yarn dev Open http://localhost:3000/ in your browser. To deploy to Vercel read this. Data Model Definition - Product Edit Database Schema Open the schema.prisma file. After you have made your changes, run npx prisma db push to update the database. Go here for more information about th","default_branch":null,"files":null,"tree":[],"storefront":"/r/gavinmgrant","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gavinmgrant/omitplastic/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."}