https://github.com/marbemac/electric-playground
https://github.com/marbemac/electric-playground
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/marbemac/electric-playground
- Owner: marbemac
- Created: 2025-02-14T22:54:15.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-19T20:18:00.000Z (over 1 year ago)
- Last Synced: 2025-02-19T21:25:41.900Z (over 1 year ago)
- Language: TypeScript
- Size: 9.97 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Electric Playground
**first time**
```bash
yarn
yarn docker.up
yarn db.push
yarn db.seed --min
```
**to start**
```bash
yarn docker.up
yarn dev
```
Visit https://localhost:3000.
**HTTPS Development Setup**
If you want to get rid of the "Your connection is not private" in browser message...
The application uses Caddy as a reverse proxy to enable HTTP/2 support. When you first access https://localhost:3000, you might see a certificate warning. To fix this:
1. Start the Docker services: `yarn docker.up`
2. Extract Caddy's root certificate:
```bash
docker compose exec caddy cat /data/caddy/pki/authorities/local/root.crt > caddy_root.crt
```
3. Add it to your system's trust store:
- **macOS**:
```bash
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain caddy_root.crt
```
- **Linux**:
```bash
sudo cp caddy_root.crt /usr/local/share/ca-certificates/
sudo update-ca-certificates
```
- **Windows**: Double-click the certificate file and install it to "Trusted Root Certification Authorities"
4. Restart your browser
Note: The certificate is specific to your machine and is automatically generated by Caddy. Never commit the `caddy_root.crt` file to version control.
Example:
