Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
docs: local dev link to env vars (#5165)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiejaoude authored Mar 1, 2023
1 parent 68356ba commit 89cab9b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 2 additions & 0 deletions pages/docs/environments/gitpod.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ In the cloud free development environment which will have all the dependencies y

You can use Gitpod in the cloud.

Setup environment [variables](/docs/environment-variables)

[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/EddieHubCommunity/LinkFree/)

export default ({ children }) => (
Expand Down
13 changes: 6 additions & 7 deletions pages/docs/environments/local-development-docker-compose.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,22 @@ You will need <Link href="https://docs.docker.com/compose/">Docker and Docker Co

### Setup

1) Make sure you have cloned the repository and are in the root of the project.

2) Execute the following command, this will build the images and start the containers.
1. Make sure you have cloned the repository and are in the root of the project.
2. Setup environment [variables](/docs/environment-variables)
3. Execute the following command, this will build the images and start the containers.

```bash
docker compose up
```

3) You can now access the application at `http://localhost:3000`.

4) If you make any changes to the dependencies, it's recommended to rebuild the images with the following command.
4. You can now access the application at `http://localhost:3000`.
5. If you make any changes to the dependencies, it's recommended to rebuild the images with the following command.

```bash
docker compose up --build
```

5) If you want to stop the containers, you can use the following command.
6. If you want to stop the containers, you can use the following command.

```bash
docker compose down
Expand Down
2 changes: 1 addition & 1 deletion pages/docs/environments/local-development.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ You can set this up locally with the following steps

1. make sure Mongo is running
1. install npm depenedencies with `npm ci`
1. a new file will be created `.env` update any details required for example mongo connection string (but usually the default will work fine)
1. a new file will be created `.env` update environment [variables](/docs/environment-variables)
1. start the app with `npm run dev` and visit in the browser `http://localhost:3000`

Any changes you make will automatically be reloaded in the browser.
Expand Down

0 comments on commit 89cab9b

Please sign in to comment.