Teslo Shop is a modern e-commerce platform built with Next.js, NextAuth, Material UI, Prisma, MySQL, TypeScript, and SWC. It provides a seamless shopping experience for customers while also offering an easy-to-use interface for store owners to manage their products and orders.
- User authentication and authorization with NextAuth
- ISR and SSR
- Responsive design with Material UI
- Database management with Prisma and MySQL
- Type-safe code with TypeScript
- Integration with PayPal
- Data cache with SWR
- Scalable and modular codebase
- Clone the repository:
git clone https://github.com/WilliamsMata/ecommerce.git
- Install dependencies:
cd ecommerce
npm install
# or
yarn
- Set up the database:
- Create a new MySQL database on your local machine or on a remote server.
- Copy the .env.example file to .env and update all the environment variables.
- Run database migrations:
npx prisma migrate dev --name init
- Start the development server:
npm run dev