GithubHelp home page GithubHelp logo

winstontsui / e-commerce Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 1.03 MB

Amazon Clone application using Next.js 13's App Router, Vercel, TypeScript, TailwindCSS, DaisyUI, NextAuth.js, MongoDB, Prisma, Prettier, Vercel, React and more.

JavaScript 5.86% TypeScript 93.81% CSS 0.33%

e-commerce's Introduction

E-Commerce Website

Winston Tsui's e-commerce application website intending to show more intermediate and advanced software engineering skills, using Next.js 13's app router. I manage next.js server actions and data intricacies with Prisma ORM. Authentication with NextAuth.js and MongoDB. UI using TailwindCSS and DaisyUI. Website deployment using Vercel. I use Prettier and ESLint for a streamlined development experience. Finally, I use TypeScript, JavaScript, CSS and HTML.

Notes: Fullstack project using next.js. Items are pre-rendered and cached, which makes page navigation fast. Next.js server actions are a way to execute POST requests on the server, such as adding an item to a cart. Anonymous and authenticated shopping cart merging feature. Pages are server side rendered, featuring faster load time and is great for SEO (Search Engine Optimization).


Notes

Format document shortcut: Shift + Alt + f

Dependencies are in the ./package.json file.

npm i daisyui prisma @prisma/client next-auth @auth/prisma-adapter prettier eslint-config-prettier prettier-plugin-tailwindcss zod

Use Prisma.io to work with our MongoDB database. However, prisma also works with sql databases.

Normally in a next.js project, our credentials go into the .env*.local file, but the problem is that prisma only looks at the normal .env file, so we use that instead.

We can tell prisma to pull the data that we added to the collection and generate a schema from the data: npx prisma db pull or push the schema to the database: npx prisma db push

npx prisma generate generates the prisma client which we can use to call our different database operations on.

Check remote repository I'm pushing and pulling from: git remote -v

Change fetch URL for origin: git remote set-url origin https://github.com/winstontsui/e-commerce

Change push URL for origin: git remote set-url --push origin https://github.com/winstontsui/e-commerce


Website Layout:

  1. Home Page: Alt text

  1. Home Page Bottom: Alt text

  1. Item Page: Alt text

  1. Shopping Cart Page: Alt text

About Me

I'm Winston Tsui, a Computer Science student at Syracuse University, hoping to become a software engineer one day :)

Passionate about using code and technology to improve the world.

[email protected]


Sources:

Florian Walther

FreeCodeCamp: https://www.youtube.com/watch?v=K4ziF0MhbLc&t=537s

Florian Walther's website: https://codinginflow.com


Next.js tutorial: https://www.youtube.com/watch?v=ZVnjOPwW4ZA

Markdown docs: https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax

Markdown live preview: https://markdownlivepreview.com/


e-commerce's People

Contributors

winstontsui avatar

Stargazers

 avatar Ramazan Çetinkaya avatar Iman avatar

Watchers

 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.