web/README.txt
129 lines · 4794 bytes
1
2WEBSITE SOURCE CODE
3-------------------
4This is the source code for the awesome-privacy website, which is deployed at
5https://awesome-privacy.xyz.
6
7================================================================================
8
9DEVELOPMENT SETUP
10-----------------
11To get started, you'll need Node and Git installed.
12Then run the following commands:
13
141. Clone the repo
15 git clone git@github.com:Lissy93/awesome-privacy.git
162. Navigate into it
17 cd awesome-privacy/web
183. Add secrets to .env
19 mv .env.sample .env
204. Install dependencies
21 yarn install
225. Start the development server
23 yarn dev
24Open browser
25 open http://127.0.0.1:4321
26
27================================================================================
28
29DEPLOYMENT
30----------
31You have several options for deploying your own instance of Awesome Privacy
32Option 1) Run `yarn build`, and copy the contents of `dist` to any web server/ CDN
33Option 2) Fork the repo and import it to a provider of your choice (Netlify or Vercel)
34Option 3) Use the included Dockerfile to build and run the application on any server
35
36================================================================================
37
38TECHNOLOGY
39----------
40The website is built with Astro, and statically generated at build-time.
41This means that changes to the raw data will not be reflected until the site is rebuilt.
42Dynamic elems (search + comments) are built as Svelte islands, and rehydrated at runtime.
43Most the code is written in Typescript. We're not using a CSS library, just plain SASS.
44
45The site also uses these dependencies:
46- fuse.js for fuzzy search
47- js-yaml for parsing YAML
48- marked for markdown rendering
49- fontawesome for iconography
50
51================================================================================
52
53DATA
54----
55All data relating to software/apps/services used on the website is pulled from:
56https://github.com/Lissy93/awesome-privacy/blob/main/awesome-privacy.yml (CC0-1.0)
57If you only wish to update content, there's no need to edit the site's source code
58
59================================================================================
60
61SITE STRUCTURE
62--------------
63All views are located in /src/pages
64The general site structure is as follows:
65
66/
67├── about
68├── search
69│ └── [query]
70├── browse
71└── [category-name]
72 └── [section]
73 └── [service]
74
75Assets in /public will be served from the top-level (favicon, pwa assets, sitemap)
76
77================================================================================
78
79THIRD-PARTY SERVICES
80--------------------
81
82Infra:
83- Vercel - This is where the site is hosted
84- GitHub - This is where the source code is stored
85- Cloudflare - This is where the domain is managed
86
87Monitoring:
88- Plausible (self-hosted) - For basic hit counting and traffic stats
89 (this does NOT collect nor store IP, user agent or any other personal info)
90- GlitchTip (self-hosted) - For error tracking and reporting
91- UptimeKuma (self-hosted) - For down detection and basic monitoring
92
93External Requests:
94- Service icons are pulled from the respective service's website
95- Comments are handled by Remark42 (self-hosted)
96- Fonts which can not be loaded from /public will fallback to Google Fonts CDN
97- Service icons which are not found, will be replaced from icon.horse
98- Open source stats on services are fetched from the GitHub API
99
100================================================================================
101
102LICENSE
103-------
104The data (in /awesome-privacy.yml) is licensed under Creative Commons CC0-1.0
105The website source code, and all other content is licensed under the MIT License
106
107(C) Alicia Sykes <https://aliciasykes.com> 2024
108
109Permission is hereby granted, free of charge, to any person obtaining a copy
110of this software and associated documentation files (the "Software"), to deal
111in the Software without restriction, including without limitation the rights
112to use, copy, modify, merge, publish, distribute, sub-license, and/or sell
113copies of the Software, and to permit persons to whom the Software is furnished
114to do so, subject to the following conditions:
115
116The above copyright notice and this permission notice shall be included install
117copies or substantial portions of the Software.
118
119THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
120IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANT ABILITY,
121FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL
122THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
123LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
124OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
125
126================================================================================
127
128
129