/crud-prisma-express-react

This project is a full-stack CRUD (create, read, update, delete) application using Prisma, Express, and React

Primary LanguageJavaScriptMIT LicenseMIT

Full-stack CRUD with Prisma, Express and React

This project is a full-stack CRUD (create, read, update, delete) application using Prisma, Express, and React

Back-End

cd backend

copy the .env.example file to .env

APP_PORT=5000
DATABASE_URL="mysql://root:123456@localhost:3306/prisma-react"

Install dependencies

npm install

Generate the Prisma Client

npx prisma generate

Migrate Database with Prisma

npx prisma migrate dev

Start the server

npm start

Your express server will now be running on port 5000. You can visit http://localhost:5000 in your web browser to verify that the server is working correctly.

Front-End

cd frontend

# Install dependencies...
npm install

# To start the application...
npm start

Runs the app in the development mode. Open http://localhost:3000 to view it in your browser.