https://github.com/oklabflensburg/oddfl
Website für den Open Data Day 2024 in Flensburg basierend auf TailwindCSS und gebaut mit Parcel
https://github.com/oklabflensburg/oddfl
flensburg fossgis geodata opendata opendataday parceljs responsive website
Last synced: 12 months ago
JSON representation
Website für den Open Data Day 2024 in Flensburg basierend auf TailwindCSS und gebaut mit Parcel
- Host: GitHub
- URL: https://github.com/oklabflensburg/oddfl
- Owner: oklabflensburg
- License: cc0-1.0
- Created: 2024-01-30T22:31:54.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-06T10:30:56.000Z (about 1 year ago)
- Last Synced: 2025-02-06T11:33:12.549Z (about 1 year ago)
- Topics: flensburg, fossgis, geodata, opendata, opendataday, parceljs, responsive, website
- Language: HTML
- Homepage: https://opendataday-flensburg.de
- Size: 6.77 MB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Open Data Day 2025
[](https://github.com/oklabflensburg/oddfl/actions/workflows/lint-css.yml)
[](https://github.com/oklabflensburg/oddfl/actions/workflows/lint-html.yml)
[](https://github.com/oklabflensburg/oddfl/actions/workflows/lint-js.yml)
[](https://github.com/oklabflensburg/oddfl/actions/workflows/lighthouse.yml)
Website für den Open Data Day am 1. März 2025 in Flensburg basierend auf TailwindCSS und gebaut mit Parcel.

## Prepare Setup
Clone repository and install dependencies on your local and remote machine.
```sh
sudo apt install nginx-full certbot python3 virtualenv
git clone https://github.com/oklabflensburg/oddfl.git
cd oddfl
```
## How to Build
Make sure you have node installed on your machine, then install dependencies.
```
pnpm install
```
When you want to build the project run the following command
```
pnpm build
```
When you are developing on your local machine run this command
```
pnpm start
```
## Nginx Setup
To deploy your site, open nginx config on your remote machine and add this lines.
```
server {
# listen 443 ssl http2;
# listen [::]:443 ssl http2;
server_name opendataday-flensburg.de;
charset utf-8;
add_header Content-Security-Policy "default-src 'self' ; script-src 'self'; img-src 'self' data: ; style-src 'self' 'unsafe-inline'; font-src 'self'; worker-src 'none'; object-src 'none'";
root /opt/git/oddfl/dist;
index index.html;
location ~ /\. {
deny all;
}
location ~* \.(ico|jpg|jpeg|png|webp|svg|js|css|woff|woff2)$ {
expires 1y;
add_header Cache-Control "public, no-transform";
}
listen 80;
}
```
## SSL Setup
Install ssl certificates, make sure to uncomment `http2` section after certbot run.
```sh
sudo certbot
```
## Nginx Service
Test nginx conig and start and enable nginx service on your system.
```sh
sudo nginx -t
sudo systemctl start nginx.service
sudo systemctl status nginx.service
sudo systemctl enable nginx.service
```