Commit 9e278676eb

9e278676eb8f2ca132056211ca358be9d0395241

parent: e17a8c5b9c

Unsigned

Alicia Sykes <alicia@omg.lol> · 2024-02-25 22:32 UTC

Dockerizes website, adds license (MIT), sample .env, docs (README.txt) and updates .gitignore to iforget build assets

Layout: unified · split

.github/README.md +17 −13
@@ -1,8 +1,6 @@
1<p align="center" id="top"><a href="https://github.com/Lissy93/awesome-privacy"><img src="https://i.ibb.co/80Y5x2T/Awesome-Privacy.png" /></a></p> 1<p align="center" id="top"><a href="https://github.com/Lissy93/awesome-privacy"><img src="https://i.ibb.co/80Y5x2T/Awesome-Privacy.png" /></a></p>
2
3<p align="center">🌐 <b><a href="https://awesome-privacy.xyz">awesome-privacy.xyz</a></b></p> 2<p align="center">🌐 <b><a href="https://awesome-privacy.xyz">awesome-privacy.xyz</a></b></p>
4 3<p align="center"><i>A curated list of privacy & security-focused apps, software, and providers</i> 🔐</p>
5*<p align="center">A curated list of privacy & security-focused apps, software, and providers 🔐</p>*
6 4
7[⏬ Skip to Content ⏬](#password-managers) 5[⏬ Skip to Content ⏬](#password-managers)
8 6
@@ -12,12 +10,13 @@ Large data-hungry corporations dominate the digital world but with little, or no
12Migrating to open-source applications with a strong emphasis on privacy and security will help stop 10Migrating to open-source applications with a strong emphasis on privacy and security will help stop
13corporations, governments, and hackers from logging, storing or selling your personal data. 11corporations, governments, and hackers from logging, storing or selling your personal data.
14 12
15**Note**: Remember that [no software is perfect](#important-considerations), and it is important to follow good [security practices](https://github.com/Lissy93/personal-security-checklist/blob/HEAD/CHECKLIST.md). 13**Note**: Remember that [no software is perfect](#important-considerations), and it is important to follow good [security practices](https://github.com/Lissy93/personal-security-checklist/blob/HEAD/CHECKLIST.md)<br>
16 14**Mirror**: This repo is mirrored to [https://codeberg.org/alicia/awesome-privacy](https://codeberg.org/alicia/awesome-privacy)<br>
17A Codeberg mirror is available [here](https://codeberg.org/alicia/awesome-privacy). 15**Repo Admin**: [Website Docs](#the-website) | [Contributing](#contributing) | [Acknowledgment](#acknowledgements) | [License](#license)
18 16
19<!-- awesome-privacy-start --> 17<!-- awesome-privacy-start -->
20## Contents 18<details>
19<summary><h2>Contents</h2></summary>
21 20
22- **Essentials** 21- **Essentials**
23 - [Password Managers](#password-managers) (5) 22 - [Password Managers](#password-managers) (5)
@@ -115,6 +114,8 @@ A Codeberg mirror is available [here](https://codeberg.org/alicia/awesome-privac
115 - [Screenshot Tools](#screenshot-tools) (0) 114 - [Screenshot Tools](#screenshot-tools) (0)
116 - [3D Graphics](#3d-graphics) (0) 115 - [3D Graphics](#3d-graphics) (0)
117 - [Animation](#animation) (0) 116 - [Animation](#animation) (0)
117</details>
118
118## Essentials 119## Essentials
119 120
120### Password Managers 121### Password Managers
@@ -3127,7 +3128,8 @@ Then run the following commands to fetch the code, install dependencies and star
3127```shell 3128```shell
3128git clone git@github.com:Lissy93/awesome-privacy.git 3129git clone git@github.com:Lissy93/awesome-privacy.git
3129cd awesome-privacy/web 3130cd awesome-privacy/web
3130yarn 3131cp .env.sample .env
3132yarn install
3131yarn dev 3133yarn dev
3132# Then open 127.0.0.1:4321 in your browser 3134# Then open 127.0.0.1:4321 in your browser
3133``` 3135```
@@ -3534,7 +3536,9 @@ This project exists thanks to all the people who've helped build and maintain it
3534 3536
3535## License 3537## License
3536 3538
3537> _**[Lissy93/Awesome-Privacy](https://github.com/Lissy93/awesome-privacy)** is licensed under [MIT](https://github.com/Lissy93/awesome-privacy/blob/HEAD/LICENSE) © [Alicia Sykes](https://aliciasykes.com) 2024._<br> 3539> _**[Lissy93/Awesome-Privacy/web](https://github.com/Lissy93/awesome-privacy/tree/main/web)** is licensed under [MIT](https://gist.github.com/Lissy93/143d2ee01ccc5c052a17)_<br>
3540> _**[awesome-privacy.yml](https://github.com/Lissy93/awesome-privacy/blob/main/awesome-privacy.yml)** is licensed under [CC0-1.0 license](https://github.com/Lissy93/awesome-privacy/blob/HEAD/LICENSE)_<br>
3541> _Copyright © Alicia Sykes <[aliciasykes.com](https://aliciasykes.com)> 2024._<br>
3538> <sup align="right">For information, see <a href="https://tldrlegal.com/license/mit-license">TLDR Legal > MIT</a></sup> 3542> <sup align="right">For information, see <a href="https://tldrlegal.com/license/mit-license">TLDR Legal > MIT</a></sup>
3539 3543
3540<details> 3544<details>
@@ -3564,13 +3568,13 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3564 3568
3565</details> 3569</details>
3566 3570
3567
3568<!-- License + Copyright --> 3571<!-- License + Copyright -->
3569<p align="center"> 3572<p align="center">
3570 <i>© <a href="https://aliciasykes.com">Alicia Sykes</a> 2024</i><br> 3573 <i>© <a href="https://aliciasykes.com">Alicia Sykes</a> 2024</i><br>
3571 <i>Licensed under <a href="https://gist.github.com/Lissy93/143d2ee01ccc5c052a17">MIT</a></i><br> 3574 <i>Licensed under <a href="https://gist.github.com/Lissy93/143d2ee01ccc5c052a17">MIT</a> &
3572 <a href="https://github.com/lissy93"><img src="https://i.ibb.co/4KtpYxb/octocat-clean-mini.png" /></a><br> 3575 <a href="https://github.com/Lissy93/awesome-privacy/blob/HEAD/LICENSE">CC0-1.0</a></i><br>
3573 <sup>Thanks for visiting :)</sup> 3576 <a href="https://github.com/lissy93"><img src="https://i.ibb.co/4KtpYxb/octocat-clean-mini.png" /></a>
3577 <br><sup>Thanks for visiting :)</sup>
3574</p> 3578</p>
3575 3579
3576<!-- Dinosaurs are Awesome --> 3580<!-- Dinosaurs are Awesome -->
web/.env.sample added +23
@@ -0,0 +1,23 @@
1# Copy this file to web/.env and complete the values
2# Once completed, DO NOT commit this file to source control!
3# Need help? Check the GitHub: https://github.com/lissy93/awesome-privacy
4
5# The target deployment platform (can be vercel, netlify, cloudflare, node)
6# Use to determine appropriate Astro adapter at build-time
7DEPLOY_TARGET='';
8
9# The build output method (can be 'server' or 'hybrid')
10# To set weather content is pre-rendered or rendered on-demand
11OUTPUT=''
12
13# The fully qualified domain name for your site
14# Used to generate sitemap.xml and for canonical URLs
15SITE_URL=''
16
17# GitHub API key (with pub repo read perms).
18# This is used to fetch reposity stats for open source apps which are listed
19GITHUB_API_KEY=''
20
21# A Font Awesome Pro package token
22# This is used in order to install Font Awesome and fetch pro icons
23FONTAWESOME_PACKAGE_TOKEN=''
web/.gitignore +8 −8
@@ -1,21 +1,21 @@
1# build output
2dist/
3
4# generated types
5.astro/
6
7# dependencies 1# dependencies
8node_modules/ 2node_modules/
9 3
10# logs 4# Install + buuld logs
11npm-debug.log* 5npm-debug.log*
12yarn-debug.log* 6yarn-debug.log*
13yarn-error.log* 7yarn-error.log*
14pnpm-debug.log* 8pnpm-debug.log*
15 9
10# build output
11dist/
12
13# generated types
14.astro/
15.vercel/
16# environment variables 16# environment variables
17.env 17.env
18.env.production 18.env.production
19 19
20# macOS-specific files 20# macOS crap
21.DS_Store 21.DS_Store
web/Dockerfile added +32
@@ -0,0 +1,32 @@
1###############################################################################
2# A lightweight, non-root, multi-stage, cross-architecture Dockerfile #
3# That you can use in order to easily deploy Awesome Privacy to any server #
4# For docs visit the GitHub repo: https://github.com/lissy93/awesome-privacy #
5# Licensed under MIT (C) Alicia Sykes <https://aliciasykes.com> 2024 #
6###############################################################################
7# Usage: #
8# Step 1: Build the Docker image #
9# docker build -t awesome-privacy . #
10# #
11# Step 2: Run the Docker container #
12# docker run -p 8080:80 awesome-privacy #
13# #
14# Step 3: Access the running app #
15# Open your browser and navigate to http://127.0.0.1:8080 #
16###############################################################################
17
18# Stage 1: Build the app (Alpine + Node.js)
19# Copies manifest and src files from host, installs deps, and builds the app
20FROM node:16-alpine as build
21WORKDIR /app
22COPY package.json yarn.lock .env* ./
23RUN yarn install --frozen-lockfile
24COPY . .
25RUN yarn build
26
27# Stage 2: Serve the app (Alpine + NGINX)
28# Copies dist from the previous stage, exposes port 80, and starts web server
29FROM nginx:alpine as runtime
30COPY --from=build /app/dist /usr/share/nginx/html
31EXPOSE 80
32CMD ["nginx", "-g", "daemon off;"]
web/LICENSE added +21
@@ -0,0 +1,21 @@
1MIT License
2
3Copyright (c) 2023 Alicia Sykes <https://github.com/lissy93>
4
5Permission is hereby granted, free of charge, to any person obtaining a copy
6of this software and associated documentation files (the "Software"), to deal
7in the Software without restriction, including without limitation the rights
8to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9copies of the Software, and to permit persons to whom the Software is
10furnished to do so, subject to the following conditions:
11
12The above copyright notice and this permission notice shall be included in all
13copies or substantial portions of the Software.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21SOFTWARE.
web/README.txt +16 −14
@@ -11,16 +11,18 @@ DEVELOPMENT SETUP
11To get started, you'll need Node and Git installed. 11To get started, you'll need Node and Git installed.
12Then run the following commands: 12Then run the following commands:
13 13
14# 1. Clone the repo 141. Clone the repo
15git clone git@github.com:Lissy93/awesome-privacy.git 15 git clone git@github.com:Lissy93/awesome-privacy.git
16# 2. Navigate into it 162. Navigate into it
17cd awesome-privacy/web 17 cd awesome-privacy/web
18# 3. Install dependencies 183. Add secrets to .env
19yarn install 19 mv .env.sample .env
20# 4. Start the development server 204. Install dependencies
21yarn dev 21 yarn install
225. Open browser 225. Start the development server
23open http://127.0.0.1:4321 23 yarn dev
24Open browser
25 open http://127.0.0.1:4321
24 26
25================================================================================ 27================================================================================
26 28
@@ -36,12 +38,12 @@ Option 3) Use the included Dockerfile to build and run the application on any se
36TECHNOLOGY 38TECHNOLOGY
37---------- 39----------
38The website is built with Astro, and statically generated at build-time. 40The website is built with Astro, and statically generated at build-time.
39This means that changes to the data will not be reflected until the site is rebuilt. 41This means that changes to the raw data will not be reflected until the site is rebuilt.
40Dynamic elems (search + comments) are built as Svelte islands, and rehydrated at runtime. 42Dynamic elems (search + comments) are built as Svelte islands, and rehydrated at runtime.
41Most the code is written in Typescript. We're not using a CSS library, just plain SASS. 43Most the code is written in Typescript. We're not using a CSS library, just plain SASS.
42 44
43The site also uses: 45The site also uses these dependencies:
44- Fuse.js for fuzzy search 46- fuse.js for fuzzy search
45- js-yaml for parsing YAML 47- js-yaml for parsing YAML
46- marked for markdown rendering 48- marked for markdown rendering
47- fontawesome for iconography 49- fontawesome for iconography
@@ -58,7 +60,7 @@ If you only wish to update content, there's no need to edit the site's source co
58 60
59SITE STRUCTURE 61SITE STRUCTURE
60-------------- 62--------------
61All views are located in /src/pages. 63All views are located in /src/pages
62The general site structure is as follows: 64The general site structure is as follows:
63 65
64/ 66/