https://github.com/bethel-nz/shoppie-admin
A simple and intuitive cms backend for any ecommerce application
https://github.com/bethel-nz/shoppie-admin
cms ecommerce nextjs13 postgresql
Last synced: 3 months ago
JSON representation
A simple and intuitive cms backend for any ecommerce application
- Host: GitHub
- URL: https://github.com/bethel-nz/shoppie-admin
- Owner: Bethel-nz
- Created: 2023-12-28T12:06:32.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-18T02:22:19.000Z (about 2 years ago)
- Last Synced: 2025-01-28T16:39:10.463Z (over 1 year ago)
- Topics: cms, ecommerce, nextjs13, postgresql
- Language: TypeScript
- Homepage: https://shoppie-admin.vercel.app
- Size: 495 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
### Prerequisites
**Node version 14.x**
### Cloning the repository
```shell
git clone https://github.com/AntonioErdeljac/next13-ecommerce-admin.git
```
### Install packages
```shell
npm i
```
### Setup .env file
```js
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/
# This was inserted by `prisma init`:
# Environment variables declared in this file are automatically made available to Prisma.
# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema
# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings
DATABASE_URL=''
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME=""
STRIPE_API_KEY=
FRONTEND_STORE_URL=http://localhost:3001
STRIPE_WEBHOOK_SECRET=
```
### Connect to db and Push Prisma
```shell
npx prisma generate
npx prisma db push
```
or
```shell
yarn generate
```
For DEMO, use [Stripe Testing Cards](https://stripe.com/docs/testing)
### Start the app
```shell
npm run dev
```
## Available commands
Running commands with npm `npm run [command]`
| command | description |
| :--------- | :------------------------------------------------ |
| `dev` | Starts a development instance of the app |
| `generate` | generates the prisma schema and pushes to your db |
## Attribution:
- [VIDEO TUTORIAL](https://youtu.be/5miHyP6lExg)
- thanks to Anthonio Erdeljac