Simple E-commerce Application with Next.js and PostgreSQL
This is a simple e-commerce application built with Next.js and PostgreSQL. It is a full-stack application that uses Next.js for the frontend and PostgreSQL for the database. It is a simple application that allows users to add products to their cart and checkout.
About the Template
This NextJS template includes a bunch of tools for a smoother build process. It is also set up with TypeScript for better type-checking. It enforces the Google style guide. The template includes the following tools,
- Chakra UI
- Tailwind CSS
- ESLint
- ESLint Config Google
- Prettier
- Husky This template can help you quickly start a side project without thinking about the setup.
Getting Started
Clone or fork the project and install the required dependencies by running the following command,
npm install
This will install the required dependencies.
To run the project in development mode, run the command npm run dev
.
This template consists of nine scripts. Each for a specific reason.
dev
: Will run the dev serverbuild
: Will build the projectstart
: Will start the servercheck-types
: Will perform type-checkingcheck-format
: Will run prettier checkcheck-lint
: Will check linting with ESLintformat
: Will format the project with Prettiertest-all
: Will runcheck-format
,check-lint
,check-types
andbuild
prepare
: Will prepare husky