Giter Site home page Giter Site logo

trapos-store's Introduction

Simple e-commerce store site, built with Next.js, NextAuth, Tailwind, MongoDB to store products, UploadThing for storing images, and the MercadoPago SDK to handle payments.

You'll need a .env file with the following structure:



MONGODB_URI = your db's connection URI

NEXTAUTH_URL =
NEXTAUTH_SECRET = secret for your Next Auth

ADMIN_EMAILS = the "admin emails" you want to allow into to login (this will depend on your nextauth setup)


UPLOADTHING_SECRET = Uploadthing secret
UPLOADTHING_APP_ID = Uploadthing APP ID

NEXT_PUBLIC_MP = MercadoPago public
NEXT_MPTOKEN = Token from MercadoPago


URL = your url for shortening other links and API endpoints (probably 'http://localhost:3000' during development)
NEXT_PUBLIC_URL = http://localhost:3000
PHONE = phone number you'll want the whatsapp button to text to

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

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

trapos-store's People

Contributors

jinitsuga avatar

Watchers

 avatar

Forkers

traposlocos

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.