From cb0578ef618daf15f7895f165723a73f77e75452 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Sun, 31 Oct 2021 15:06:06 +0100 Subject: docs: add a readme --- README.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..2876403 --- /dev/null +++ b/README.md @@ -0,0 +1,37 @@ +# demo.armandphilippot.com + +A website to present some small apps using Git submodules. + +## Install + +First, you need to `git clone` this repo or to use it as Git submodule. + +Then, you need to build each React app. For each subdirectory inside `react-small-apps`, you need to execute the following commands: + +1. `cd projects/react-small-apps/{project-name}/` +2. `cp .env.example .env` +3. Set the `PUBLIC_URL` in `.env` to `/projects/react-small-apps/{project-name}/build/` +4. `yarn install` +5. `yarn build` + +## Development + +At the root of this repo: + +1. `cp .env.example .env` +2. Edit the `.env` file to suits your needs. +3. `yarn install` +4. `yarn run serve` + +## Production + +At the root of this repo: + +1. `cp .env.example .env` +2. Edit the `.env` file to suits your needs. +3. `yarn install` +4. `yarn run build` + +## License + +This project is open-source and available under [MIT License](./LICENSE). -- cgit v1.2.3