Official NodeJS RealWorld codebase (V2)
WORK IN PROGRESS
run git clone https://github.com/gothinkster/node-express-prisma-v1-official-app.git
NodeJS is required
cd node-express-prisma-v1-official-app
npm install
PostgreSQL downloads page
run pgAdmin
create a server (Object/Create/Server)
required fields:
- name
- HOST name/address
create a .env file at the root of the project
populate it with the url of your database
DATABASE_URL="postgresql://<username>:<password>@<host_name>:<port>/<database_name>?schema=public"
run npm run dev
npm run prisma:format
prisma migrate dev --name added_job_title
npm run prisma:generate
with watch option
npm run prisma:generate:watch
npm run prisma:seed
npm run prisma:studio
- Drop the database
- Create a new database
- Apply migrations
- Seed the database with data
npm run prisma:reset