Coder Social home page Coder Social logo

strapi / strapi-starter-next-ecommerce Goto Github PK

View Code? Open in Web Editor NEW
211.0 18.0 73.0 812 KB

Strapi Starter Next.js E-commerce

Home Page: strapi-starter-next-ecommerce.strapijs.vercel.app

License: MIT License

JavaScript 99.20% CSS 0.80%
strapi starter ecommerce nextjs

strapi-starter-next-ecommerce's Introduction

โ›” Deprecated

This repository is no longer maintained and only works for Strapi v3. To find the newest Strapi v4 starters, check out the starters-and-templates monorepo.


Strapi Starter Next.js E-commerce

Next.js starter for creating a simple e-commerce website with Strapi.

screenshot image

This starter allows you to try Strapi with Next.js with the example of a simple e-commerce website where you can buy dev stickers. It is fully customizable and due to the fact that it is open source, fully open to contributions. So do not hesitate to add new features and report bugs!

This starter uses the Strapi E-commerce template

Check out all of our starters here

Features

  • 1 Component
  • 2 Collection types: Product, Category
  • 27 Created products
  • 6 Created categories
  • Permissions set to true for product and category
  • Responsive design using Tailwind css
  • Slug system
  • Publication system (draft & published)
  • Role based access controls
  • Payments handled with Snipcart

This starter is using Snipcart which allows you setup a shopping cart on any website. They wrote a tutorial teaching you how to create this website but selling cupcakes!

Payment will not work on localhost, we are redirecting you to this tutorial if you want to test payment locally.

Getting started

Use our create-strapi-starter CLI to create your project.

npx create-strapi-starter@3 my-site next-ecommerce

The CLI will create a monorepo, install dependencies, and run your project automatically.

The Next frontend server will run here => http://localhost:3000

The Strapi backend server will run here => http://localhost:1337

Deploying to production

You will need to deploy the frontend and backend projects separately. Here are the docs to deploy each one:

Don't forget to setup the environment variables on your production app:

For the frontend the following environment variable is required:

  • NEXT_PUBLIC_STRAPI_API_URL: URL of your Strapi backend, without trailing slash

Enjoy this starter!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.