Digital Web Services “DWS” is a leading IT outsourcing company with specialization in software development, Application development, website designing and digital marketing services. Here we are always working for effective solutions and optimum results at suitable cost so that everyone can increase their business revenue online.
You need Node JS installed on your local machine.
Run the follwing command to install all the packages:
npm run setup
To run this project, you will need to add the environment variables.
Run the following command to create .env
files inside backend
&& frontend
directory
cd backend && cp .env.example .env && cd .. && cd frontend && cp .env.example .env && cd ..
NOTE: Update the .env
file with your own values
ignore: if you want to use supabase as database then you have to update the .env
file from backend
directories with your own values otherwise you can use sqlite as database
Read the supabase docs to get the DIRECT_URL
and DATABASE_URL
key here
Delete the migrations
folder from backend/prisma
directory
Update the following code with lines 5-16
in the schema.prisma
file from backend/prisma
directory to use sqlite
as database
// POstgresql Connector
// datasource db {
// provider = "postgresql"
// url = env("DATABASE_URL")
// directUrl = env("DIRECT_URL")
// }
// SQLite Connector
datasource db {
provider = "sqlite" // data source connector
url = env("DATABASE_URL") // path to the database file
}
Run the following command to generate the sql
npm run prisma:migrate
Run the following command if you want reset
database and applying migration:
npm run prisma:reset
You only have to run one of the following command for only one time at the beginning of project setup
By this command your app will be run development
mode concurrently
npm run start
By this command your app will be run production
mode concurrently
npm run build && npm run start:prod
A server will be run at http://localhost:4000
And frontend server will be run at http://localhost:3000
#admin
email: admin@gmail.com
password: 102030
#user
email: test@gmail.com
password: 102030
inside docs
directory
-
NodeJS - Node.js® is an open-source, cross-platform JavaScript runtime environment.
-
Express - routing and middleware web framework
-
NEXT - Next.js handles the tooling and configuration needed for React, and provides additional structure, features, and optimizations for our application.
-
Prisma - Prisma is a next-generation Node.js and TypeScript ORM
-
Tailwind CSS - A utility-first CSS framework, easy to customize, adapts to any design, and the build size is tiny.
Client: React, NEXT, Chakra, TailwindCSS , React Query
Server: Node, Express
Database: Prisma - Development (Sqlite) Production (postgres)
Type Check: Typescript
This project is used by the following companies:
- Ztrios Tech & Marketing
Project was created for Internship Purpose
- IUBAT- International University of Business Agriculture and Technology
- Md. Mahamud Hasan - software engineeer