This repository contains source code of the Tarek's personal website, which is built based on Docusaurus 2, a modern static website generator.
Important
This website originally comes from Paweł Kosiec's awesome personal website. You can read more details in Paweł Kosiec's README. Appreciate his kind sharing and contribution!
-
Clone the repository
-
Install Docker and Docker Compose
Please ensure that your device has successfully installed Docker Desktop or runnable Docker Engine, and that your environment supports the
docker compose
command.$ docker --version Docker version 26.1.1, build 4cf5afa $ docker compose version Docker Compose version v2.27.0-desktop.2
-
Launch the dev container
$ docker compose --profile dev up -d
-
Access container shell
$ docker exec -it dev-web /bin/bash # Output root@ae3a7ef54878:/opt/website
-
Run the website in the container shell:
$ npm start
You can see the website in the browser with the address.
http://localhost:3006
. -
View production build locally with:
Build the website:
$ npm run build
Check website just built in
./build
$ npm run serve -- --host 0.0.0.0 --port 3006 --no-open
-
Renew Algolia DocSearch Index. See more in dev-guide documents.