Skip to content

Commit ee2c727

Browse files
committed
update README
1 parent 905c033 commit ee2c727

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@ Tutorial for HowToGraphQL with Typescript, Apollo-Server, Nexus and Prisma.
44

55
### Installation
66

7-
1. Run `npm install`
8-
2. Run `npx prisma generate`
9-
3. Run `npm dev`
7+
1. Install dependencies: `npm install`
8+
2. Start a PostgreSQL database with docker using: `docker-compose up -d`.
9+
- If you have a local instance of PostgreSQL running, you can skip this step.
10+
3. Create a `.env` file and add the `DATABASE_URL` environment variable with a [PostgreSQL connection string](https://www.prisma.io/docs/concepts/database-connectors/postgresql#connection-details).
11+
- The `.env.example` file is provided as reference.
12+
4. Apply database migrations: `npx prisma migrate dev`
13+
5. Start the project: `npm dev`
14+
1015

11-
_Note:_ There's no need to run migrations on the database because the SQLite Database is added to version control for convenience.

0 commit comments

Comments
 (0)