# express-prisma **Repository Path**: sigcc/express-prisma ## Basic Information - **Project Name**: express-prisma - **Description**: No description available - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-04-09 - **Last Updated**: 2022-04-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ![Rails Example App](media/realworld.png) > Official NodeJS codebase that adheres to the [RealWorld](https://gothinkster.github.io/realworld/docs/specs/backend-specs/introduction) API spec. This repo is functionality complete. # Deploy to Heroku [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy) # Getting started ### Clone the repository run `git clone https://github.com/gothinkster/node-express-prisma-v1-official-app.git` ### Install the dependancies > [NodeJS](https://nodejs.dev/) is required ``` cd node-express-prisma-v1-official-app npm install ``` ### Download pgAdmin for PostgreSQL [PostgreSQL](https://www.postgresql.org/download/) downloads page ### Create a server run **pgAdmin** create a server (Object/Create/Server) required fields: - name - HOST name/address ### Connect the created server create a _.env_ file at the root of the project populate it with the url of your database ``` DATABASE_URL="postgresql://:@:/?schema=public" ``` ### Run the project locally run `npm run dev` ## Advanced usage ### Prisma ### Format the Prisma schema ```bash npm run prisma:format ``` ### Migrate the SQL schema ```bash prisma migrate dev --name added_job_title ``` ### Update the Prisma Client ```bash npm run prisma:generate ``` _with watch option_ ```bash npm run prisma:generate:watch ``` ### Seed the database ```bash npm run prisma:seed ``` ### Launch Prisma Studio ```bash npm run prisma:studio ``` ### Reset the database - Drop the database - Create a new database - Apply migrations - Seed the database with data ```bash npm run prisma:reset ```