Coder Social home page Coder Social logo

cosmicjs / unft-marketplace Goto Github PK

View Code? Open in Web Editor NEW
60.0 3.0 37.0 8.98 MB

A digital art marketplace built using Next.js, Stripe, and Cosmic.

Home Page: https://cosmic-nextjs-marketplace.vercel.app

License: MIT License

JavaScript 55.19% Sass 44.62% SCSS 0.19%
cms cosmicjs ecommerce headlesscms nextjs react reactjs stripe

unft-marketplace's Introduction

Next.js Marketplace

Now updated to connect to the new dashboard and Cosmic JavaScript SDK. Read the article to learn about the latest updates.

The Next.js Marketplace is a template that you can use to start your own digital art marketplace. Download for free.

Cosmic uNFT

Technology used

This template uses the following technologies:

  • Next.js - scalable and high-performance React.js framework for modern web development. Provides a large set of features, such as hybrid rendering, route prefetching, automatic image optimization, and internationalization, out of the box.
  • Cosmic - fast, fully managed headless CMS that enables us to quickly manage and create website content including UGC (user-generated content).
  • Stripe - payments infrastructure that provides API tools to receive one-time and subscription payments.

Links

Getting started

  1. First, install the template into your Cosmic account to get the demo content ready.
  2. Then download and install the code on your machine.
git clone https://github.com/cosmicjs/unft-marketplace
cd unft-marketplace
pnpm install
# or
yarn
# or
npm install

Environment variables

You'll need to create a .env file in the root of the project and add the access keys for Cosmic and Stripe. This can be done by copying the .env.example.

cp .env.example .env

Cosmic: Go to Cosmic and from the Bucket that you installed the app template go to Bucket Settings > API Access and get your API access keys.

Stripe: Log in to Stripe and get your keys in the for developers section.

Add your keys to the .env file like so:

# .env
NEXT_PUBLIC_COSMIC_BUCKET_SLUG=your_cosmic_slug
NEXT_PUBLIC_COSMIC_READ_KEY=your_cosmic_read_key
COSMIC_WRITE_KEY=your_cosmic_write_key

NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=your_stripe_key
STRIPE_SECRET_KEY=your_stripe_secret_key

Then run the development server

pnpm dev
# OR
yarn dev
# OR
npm run dev

Open http://localhost:3000 with your browser to see the result.

Deploy on Vercel

Use the following button to deploy to Vercel. You will need to add your environment variables before deployment.

Check out the Next.js deployment documentation for more details.

License

This project is published under the MIT license.

unft-marketplace's People

Contributors

naira-ge avatar stefkudla avatar tonyspiro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

unft-marketplace's Issues

src error

Hi, I just bumped into this error when cloned the repository:

Error: Image is missing required "src" property. Make sure you pass "src" in props to the next/image component. Received: {"width":256,"height":120}

Thank you for your time and consideration !

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.