GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - rtsdeveloper/API_Development

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
lib
lib
 
 
middleware
middleware
 
 
prisma
prisma
 
 
routes
routes
 
 
scripts
scripts
 
 
.gitignore
.gitignore
 
 
package.json
package.json
 
 
readme.md
readme.md
 
 
server.js
server.js
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

Run this project (existing repo)

Prerequisites

  • Node.js >= 16
  • Yarn
  • MySQL running and reachable

1) Install dependencies

yarn install

2) Configure environment

Create a .env file at the project root with your database URL:

DATABASE_URL="mysql://root:[email protected]:3306/mydb"

Ensure the database exists:

mysql -u root -proot -e "CREATE DATABASE IF NOT EXISTS mydb;"

Connect to MySQL Shell:

\connect root@localhost:3306;
USE mydb;
SHOW TABLES;
SHOW DATABASES;
SELECT * FROM user;

3) Apply migrations and generate Prisma Client

yarn prisma migrate dev --name init

This applies the SQL in prisma/migrations/**/migration.sql and regenerates the Prisma client.


4) Start the server

yarn dev    # uses nodemon
# or
yarn start  # plain node

5) Prisma quick commands (Yarn)

yarn prisma:migrate:dev      # Apply migrations in dev mode
yarn prisma:migrate:deploy   # Apply migrations in production
yarn prisma:generate         # Generate Prisma client
yarn prisma:studio           # Open Prisma Studio
yarn prisma:db:push          # Push schema without migrations

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.