Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyuweitarek committed Oct 28, 2024
1 parent 6b5531f commit 156fae0
Show file tree
Hide file tree
Showing 8 changed files with 328 additions and 333 deletions.
63 changes: 32 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,52 +11,53 @@ This repository contains source code of the Tarek's personal website, which is b

2. Install Docker and Docker Compose

Please ensure that your device has successfully installed [Docker Desktop](https://www.docker.com/products/docker-desktop) or runnable [Docker Engine](https://docs.docker.com/engine/install/), and that your environment supports the `docker compose` command.
Please ensure that your device has successfully installed [Docker Desktop](https://www.docker.com/products/docker-desktop) or runnable [Docker Engine](https://docs.docker.com/engine/install/), and that your environment supports the `docker compose` command.

```bash
$ docker --version
Docker version 26.1.1, build 4cf5afa
```bash
$ docker --version
Docker version 26.1.1, build 4cf5afa

$ docker compose version
Docker Compose version v2.27.0-desktop.2
```
$ docker compose version
Docker Compose version v2.27.0-desktop.2
```

### Development

1. Launch the dev container

```bash
$ docker compose --profile dev up -d
```
```bash
$ docker compose --profile dev up -d
```

2. Access container shell
2. Access container shell

```bash
$ docker exec -it dev-web /bin/bash
```bash
$ docker exec -it dev-web /bin/bash

# Output
root@ae3a7ef54878:/opt/website
```
# Output
root@ae3a7ef54878:/opt/website
```

3. Run the website in the container shell:

```bash
$ npm start
```
You can see the website in the browser with the address. `http://localhost:3006`.
```bash
$ npm start
```

You can see the website in the browser with the address. `http://localhost:3006`.

4. View production build locally with:

**Build the website:**
```
$ npm run build
```
**Check website just built in `./build`**

```bash
$ npm run serve -- --host 0.0.0.0 --port 3006 --no-open
```
**Build the website:**

```
$ npm run build
```

**Check website just built in `./build`**

```bash
$ npm run serve -- --host 0.0.0.0 --port 3006 --no-open
```

5. Renew Algolia DocSearch Index. See more in [dev-guide documents](./docs/Dev-Guide/renew-algolia-docsearch-index.mdx).
Loading

0 comments on commit 156fae0

Please sign in to comment.