|
1 |
| -# <WebdevHome /> |
| 1 | +# WebdevHome |
2 | 2 |
|
3 |
| - |
| 3 | +This is a collection of links I, as a web developer, use very frequently. Maybe you will find them useful, too. |
4 | 4 |
|
5 |
| -[webdevhome.github.io](https://webdevhome.github.io) |
| 5 | +[Open WebdevHome](https://webdevhome.github.io) |
6 | 6 |
|
7 |
| -This is a collection of links I, as a web developer, use very frequently. Maybe you will find them useful, too. |
| 7 | +## How to use |
8 | 8 |
|
9 |
| -## Credits |
| 9 | +### Search links |
10 | 10 |
|
11 |
| -[TypeScript](https://github.com/microsoft/TypeScript) |
12 |
| -• [React](https://github.com/facebook/react) |
13 |
| -• [farzher/fuzzysort](https://github.com/farzher/fuzzysort) |
14 |
| -• [TailwindCSS](https://tailwindcss.com/) |
15 |
| -• [Simple Icons](https://github.com/simple-icons/simple-icons) |
16 |
| -• [Material Design Icons](https://github.com/Templarian/MaterialDesign) |
| 11 | +By just typing in the name of a website the links get filtered automatically. |
17 | 12 |
|
18 |
| -## Development |
| 13 | +E.g. typing `gh` » `Return` opens GitHub. |
19 | 14 |
|
20 |
| -To start WebdevHome locally run: |
| 15 | +### Search on other websites |
21 | 16 |
|
22 |
| -```shell |
23 |
| -npm ci |
24 |
| -``` |
| 17 | +By clicking the magnifier icon next to a link, or by pressing `Tab` while on the search page you can enter a search term |
| 18 | +that gets sent to that website. |
| 19 | + |
| 20 | +E.g. typing `npm` » `Tab` » `react` » `Return` starts a search for "react" on npm.com. |
| 21 | + |
| 22 | +### Link info |
| 23 | + |
| 24 | +Hover over a link and a tooltip will appear with more details about the linked website. |
| 25 | + |
| 26 | +### Customize links |
| 27 | + |
| 28 | +By clicking on "Options" and then "Customize links" you can hide some links that you don't want to see or use less |
| 29 | +frequently. |
| 30 | + |
| 31 | +You can still access them by clicking "Show x hidden links" or by using the search. Hidden links will be sorted to the |
| 32 | +bottom while using the search. |
| 33 | + |
| 34 | +**Caveat:** If you hide all links inside a group the group is hidden entirely. So, there's no "Show x hidden links" |
| 35 | +button. You can still find them in the search though. |
| 36 | + |
| 37 | +### Theme |
| 38 | + |
| 39 | +You can choose between "Light", "Dark", and "System". The "System" theme will apply the light or dark theme depending on |
| 40 | +your operating system or browser settings. |
25 | 41 |
|
26 |
| -and then: |
| 42 | +## Run development |
| 43 | + |
| 44 | +### Using Node.js |
27 | 45 |
|
28 | 46 | ```shell
|
| 47 | +# Install dependencies |
| 48 | +npm ci |
| 49 | + |
| 50 | +# Start dev server |
29 | 51 | npm run dev
|
30 | 52 | ```
|
31 | 53 |
|
32 |
| -This starts a watcher that builds the project every time you make some changes. Also, the local version of your app (running on localhost:3000) gets opened in your default browser automatically. |
| 54 | +The app is now running on http://localhost:5173. |
| 55 | + |
| 56 | +End the dev server by pressing `[Ctrl]` + `[C]` in your terminal. |
| 57 | + |
| 58 | +### Using Docker |
33 | 59 |
|
34 |
| -End the watcher script by pressing `[Ctrl]` + `[C]` in your terminal. |
| 60 | +```shell |
| 61 | +# Build image |
| 62 | +docker build . --target dev --tag webdevhome-dev --build-arg warp=true --build-arg ls_improvement=true --build-arg rm_cp_mv_interactive=true |
35 | 63 |
|
36 |
| -## Run in a Docker environment |
| 64 | +# Create and run container |
| 65 | +docker run --name webdevhome-dev --publish 5173:5173 --detach --tty webdevhome-dev |
| 66 | +``` |
37 | 67 |
|
38 |
| -If you want to run this app in your own Docker environment run the following commands from inside the project root directory: |
| 68 | +### Using Docker compose |
39 | 69 |
|
40 | 70 | ```shell
|
41 |
| -docker-compose build |
| 71 | +docker compose up --build --detach --remove-orphans dev |
42 | 72 | ```
|
43 | 73 |
|
44 |
| -and then: |
| 74 | +### Build args |
| 75 | + |
| 76 | +| Arg | Values | Default | Description | |
| 77 | +|:---------------------|:----------------|:--------|:--------------------------------------------------------------------------------| |
| 78 | +| ls_improvement | `true`, `false` | `false` | Enable colors for `ls` command and enable aliases `ls`, `ll`, and `l`. | |
| 79 | +| rm_cp_mv_interactive | `true`, `false` | `false` | Enable aliases for `rm`, `cp`, and `mv` to automatically include the `-i` flag. | |
| 80 | +| warp | `true`, `false` | `false` | Enable Warp support for console. | |
| 81 | + |
| 82 | +## Run production |
| 83 | + |
| 84 | +### Using Docker |
45 | 85 |
|
46 | 86 | ```shell
|
47 |
| -docker-compose up |
| 87 | +# Build image |
| 88 | +docker build . --target prod --tag webdevhome |
| 89 | + |
| 90 | +# Create and run container |
| 91 | +docker run --name webdevhome --publish 80:80 --detach webdevhome-prod |
48 | 92 | ```
|
49 | 93 |
|
50 |
| -_Or `docker-compose up -d` to run in detached mode._ |
| 94 | +Change the ports accordingly. |
51 | 95 |
|
52 |
| -_Halt the app in detached mode by running `docker-compose down`._ |
| 96 | +### Using Docker compose |
53 | 97 |
|
54 |
| -If you make any changes, start again at `docker-compose build`. |
| 98 | +If you want to run this app in your own Docker environment run the following commands from inside the project root |
| 99 | +directory: |
55 | 100 |
|
56 |
| -**Important:** If you change the `dependencies` in `package.json` directly you have to run `npm install` locally before running `docker-compose build`! Better use `npm i <package-name>` to add dependencies or `npm un <package-name>` to remove packages instead. |
| 101 | +```shell |
| 102 | +docker compose up --build --detach --remove-orphans webdevhome |
| 103 | +``` |
57 | 104 |
|
58 |
| ---- |
| 105 | +## Credits |
59 | 106 |
|
60 |
| -Developed and maintained by: Andreas Linnert ([alinnert](https://github.com/alinnert)) |
| 107 | +[TypeScript](https://github.com/microsoft/TypeScript) |
| 108 | +• [React](https://github.com/facebook/react) |
| 109 | +• [farzher/fuzzysort](https://github.com/farzher/fuzzysort) |
| 110 | +• [TailwindCSS](https://tailwindcss.com/) |
| 111 | +• [Simple Icons](https://github.com/simple-icons/simple-icons) |
| 112 | +• [Material Design Icons](https://github.com/Templarian/MaterialDesign) |
0 commit comments