https://github.com/zain-ul-din/ecommerce-site
full stack ecommerce site with restful API's with node js , front end with next js and SQL database
https://github.com/zain-ul-din/ecommerce-site
Last synced: about 2 months ago
JSON representation
full stack ecommerce site with restful API's with node js , front end with next js and SQL database
- Host: GitHub
- URL: https://github.com/zain-ul-din/ecommerce-site
- Owner: Zain-ul-din
- Created: 2022-06-08T17:34:10.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-08-10T10:16:23.000Z (about 3 years ago)
- Last Synced: 2025-08-21T03:48:25.514Z (2 months ago)
- Language: JavaScript
- Size: 9.92 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Initial Setup
***Backend:-***
> Add your database URL in .env file also change db provider in `prisma/schema.prisma` file``` .env
# 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="provider://username:password@host:PORT/mydb"
JWT_SECRET = "your secret"
COOKIE_NAME = "your cookie name"
NODE_ENV = "development"```
### start backend sever `npm start` OR `yarn start`
***Front-end:-***
> Add firebase_key.js in root directory form there export default your firebase config secret OR open Helper/firebase.js to edit
```.env
NEXT_PUBLIC_SERVER_URL='http://localhost:8000' # backend server URL
NEXT_PUBLIC_COOKIE_NAME = 'c63c2db1c530292af42EIKOOC013685db7f97fe' # cookie name from backend server
NEXT_PUBLIC_SALT = '' # add salt
NEXT_PUBLIC_ANOTHER_SALT = '' # add salt```
### start front end `npm run dev` OR `yarn dev`
### run `npm run format` OR `yarn format` to auto fromat all files