Skip to content

Digital Web Services is a leading IT outsourcing company for website designing, SEO services, software development, digital marketing, etc

Notifications You must be signed in to change notification settings

rockreyad/digitalservice

Repository files navigation

Digital Marketing Service Portal

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.

Prerequisites

You need Node JS installed on your local machine.

Installation 🛠

Run the follwing command to install all the packages:

npm run setup

Setup enviornment variable 🌳

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

Setup supabase

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

Database migration 🗄

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

Run 🏃‍♂️

By this command your app will be run development mode concurrently

npm run start

Run in Production Mode 🚀

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

Default Login Credentials 🔐

#admin
email: [email protected]
password: 102030

#user
email: [email protected]
password: 102030

Project Documentation 📖

inside docs directory

Built With 🛠

  • 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.

Tech Stack

Client: React, NEXT, Chakra, TailwindCSS , React Query

Server: Node, Express

Database: Prisma - Development (Sqlite) Production (postgres)

Type Check: Typescript

Used By

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

Credit & Supervised By

Krishna Das

Authors

About

Digital Web Services is a leading IT outsourcing company for website designing, SEO services, software development, digital marketing, etc

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages