Skip to content

Commit

Permalink
feat: migrations doc
Browse files Browse the repository at this point in the history
  • Loading branch information
codaisa committed May 11, 2024
1 parent c93db41 commit 6a69000
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion docs/code/deploy-back-end/navigating.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,27 @@ SENDGRID_API_KEY=
APP_NAME=कोच डिजिटल एनपी
```

4. Launching the Application:
4. 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.

To install, you should simply execute the following command in the root folder of the application:

If you have chosen to use npm:

```bash
npm run migration:run
```

Or using yarn:

```bash
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:

Save the `.env` file and run `yarn start`. Your application should now be operational on port 3001.

Expand Down

0 comments on commit 6a69000

Please sign in to comment.