Skip to content

Commit

Permalink
feat: create the first user admin
Browse files Browse the repository at this point in the history
  • Loading branch information
codaisa committed May 15, 2024
1 parent 6a69000 commit 910d20d
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions docs/code/deploy-back-end/navigating.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ SENDGRID_API_KEY=
APP_NAME=कोच डिजिटल एनपी
```

4. Execute database migrations:
5. Execute database migrations:

After setting all environment variables, especially the database keys, you will be ready to execute the migrations. Running the migration installation is crucial and cannot be avoided under any circumstances.

Expand All @@ -57,9 +57,19 @@ yarn migration:run

After this command, wait for the terminal to confirm that everything has been executed, and to ensure, access your database with a viewer and verify if various tables have been created.

5. Launching the Application:
7. Create the first admin user into database:

Save the `.env` file and run `yarn start`. Your application should now be operational on port 3001.
After executing the migrations and creating the tables, you just need to connect to the database and create the first admin user of the application by running the command below:

```sql
insert into "public"."user" ("email", "role") values ('[email protected]', 'admin');
```

Remember to replace '[email protected]' with your administrator email, and after starting the application, just click on 'forgot my password' to recover it and create a new one.

8. Launching the Application:

Run `yarn start`. Your application should now be operational on port 3001.

## Email Authentication Configuration

Expand Down

0 comments on commit 910d20d

Please sign in to comment.