Giter VIP home page Giter VIP logo

gotpop / gotpop-shop Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 16.76 MB

A full stack e-commerce application built with Next.js, NextAuth.js, Prisma/PostgresQL & raw CSS, deployed on Vercel & Railway

Home Page: https://gotpop-shop.vercel.app

CSS 27.93% TypeScript 71.36% JavaScript 0.04% HTML 0.59% Shell 0.08%
css-grid-layout css-modules nextjs nextjs13 vercel-deployment postgresql postgresql-database primsa railway database

gotpop-shop's Introduction

GotPop Shop

A full stack e-commerce application.

Project Goals

The initial goal of this application is to demonstrate a Next.js application performing CRUD operations to a PostgreSQL database. I also wanted to create a component system using raw CSS rather than a UI framework to demonstrate website layout with CSS Grid Layout.

Caveats

This is an ongoing project, right now there's no user login so every user hits the same database user. The next feature will be to add NextAuth.js.

This will open the door to separate carts, wish lists & delivery details etc. The Prisma schema is already set up to allow this.

Tech Stack

  • Next.js (13)
  • Raw CSS transpiled with PostCSS
  • Prisma
  • TypeScript
  • PostgreSQL
  • Cypress (E2E & component)
  • GitHub Actions

Getting Started

This app was developed with Node 18.

Local

First you must set up the .env file in order to connect to the database. You can use the starter .env.sample located in the root.

DATABASE_URL=DATABASE_SECRET_KEY

Once you have the database environment variable set you can install and run the project. If you would like to use your own database you can host them for free at railway.app. You can grab the full connection string from the connect tab in the settings page. You can seed the database with npx prisma db seed. More information here in the Prisma docs.

  • yarn
  • yarn build
  • yarn start

Environments

Local Preview Live
Localhost Preview Live Vercel

Dashboards

Vercel Railway
Dashboard Dashboard

Image of shop website

gotpop-shop's People

Contributors

gotpop avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.