From f6961d3c9c4fea0c9c22998baecae6170b12946f Mon Sep 17 00:00:00 2001 From: JayaKrishnaNamburu Date: Mon, 1 May 2023 17:09:20 +0200 Subject: [PATCH 1/2] Add docs for creating database --- docs/contributing.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/contributing.md b/docs/contributing.md index e09c492..234b9ef 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -32,6 +32,14 @@ If you want to contribute and don't know where to start, here is a step-by-step 7. Run `pnpm migrations migrate` - apply database migrations 8. Run `pnpm dev` - URL will be logged +## Creating database + +If you are configuring the app for the first time. Create the database before running migrations. + +```sh +user=# CREATE DATABASE webstudio; +``` + ## Login locally When downloading the app you will have two options for login and they both work in different ways. @@ -46,7 +54,7 @@ DEV_LOGIN=true AUTH_SECRET=a random value ``` -To login in the app click on the "Dev Login" button and paste the first four character of your `AUTH_SECRET` in the input. +To login in the app click on the "Dev Login" button and paste the **first four character** of your `AUTH_SECRET` in the input. ### GitHub Login From 1409aaa5ce554fbd9da8bb0fffd8564a9752dd9b Mon Sep 17 00:00:00 2001 From: JayaKrishnaNamburu Date: Tue, 2 May 2023 08:52:28 +0200 Subject: [PATCH 2/2] Remove leading user from the shell path --- docs/contributing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/contributing.md b/docs/contributing.md index 234b9ef..063b2fe 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -37,7 +37,7 @@ If you want to contribute and don't know where to start, here is a step-by-step If you are configuring the app for the first time. Create the database before running migrations. ```sh -user=# CREATE DATABASE webstudio; +> CREATE DATABASE webstudio; ``` ## Login locally