Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nojaf/ronnies.be
Source code for https://ronnies.be
https://github.com/nojaf/ronnies.be
Last synced: 17 days ago
JSON representation
Source code for https://ronnies.be
- Host: GitHub
- URL: https://github.com/nojaf/ronnies.be
- Owner: nojaf
- License: apache-2.0
- Created: 2020-02-15T17:48:15.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-06-06T14:11:57.000Z (5 months ago)
- Last Synced: 2024-10-11T19:49:57.081Z (about 1 month ago)
- Language: F#
- Size: 11.7 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ronnies.be
## Prerequisites
- firebase cli (https://firebase.google.com/docs/cli)
- bun.sh (`curl -fsSL https://bun.sh/install | bash`)
- `sudo apt install parallel`## Init
## Compile functions
```bash
dotnet fable -e .js Functions.fsproj --watch --noCache
```## Run emulators
```bash
firebase emulators:start --project=ronnies-210509
```## Seed
```bash
dotnet fsi seed.fsx
```## Run application
```bash
dotnet fable watch --cwd ./app ./App.fsproj -e .js -o ./out --fableLib fable-library --noReflection --run bun run dev
```## Build application
```bash
dotnet fable ./App.fsproj --cwd ./app -e .js -o ./out --fableLib fable-library --noReflection --exclude "Nojaf.Fable.React.Plugin" --run bun run build
```## Deploy frontend
```bash
firebase deploy --only hosting
```## Format code
```bash
dotnet fantomas app build.fsx
```## View in use port in Ubuntu
```bash
# Try and kill firebase processes
sudo pkill -f firebase# Define the ports you want to search for
PORTS=("4000" "6006" "6007")# Search for processes using the specified ports
for PORT in "${PORTS[@]}"; do
PID=$(sudo lsof -nP | grep LISTEN | grep ":$PORT " | awk '{print $2}')# Check if any processes are found
if [ -n "$PID" ]; then
echo "Processes found listening on port $PORT: $PID"
# Kill the processes
sudo kill -9 $PID
echo "Processes killed."
else
echo "No processes found listening on port $PORT."
fi
done
``````bash
sudo lsof -nP | grep LISTEN
```