first run
npm install
then
npx prisma generate
then
npx prisma migrate dev
You should already have postgres installed and created a db named projectshub locally.
create a .env file and add
DATABASE_URL="postgresql://johndoe:randompassword@localhost:5432/mydb?schema=public"
Note: ensure the database url is urlencoded e.g %20 for whitespaces
run npx prisma migrate dev --name version
according to changes e.g 1.0.4 upon every schema change made by you and
npx prisma dbPush
upon every change made by someone else
-
Notifications
You must be signed in to change notification settings - Fork 2
dsccovenantuniversity/projects-hub-backend
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published