This branch differs from the RealWorld API specs by including limitations to public-created content. We encourage you to use it if you plan to host this app publicly.
run git clone
NodeJS required
cd api-realworld
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