Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
juandjara authored Nov 19, 2023
1 parent 8ed77f9 commit 72d860c
Showing 1 changed file with 48 additions and 4 deletions.
52 changes: 48 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,54 @@
# freetunes2
[![Deploy Docker Image to ghcr.io](https://github.com/juandjara/freetunes/actions/workflows/ghcr.yml/badge.svg)](https://github.com/juandjara/freetunes/actions/workflows/ghcr.yml)

rewrite of freetunes frontend many years later
# FreeTunes

this project is based on the vite react typescript, uses tailwind for styling and react-router data router for data loading and client side routing. It also features drropdown component from headless-ui/react
FreeTunes is an app to listen to background music from youtub and download it as mp3 build partly on top of [Invidious](https://invidious.io/)

## Requirements
To run this project on your environment you will need one thing
- A publicly accesible [Invidious](https://invidious.io/) instance. To provide this you can use the `INVIDIOUS_URL` env var. If this environment variable is not detected the app will refuse to start.

## Running from docker image

A docker image is published to ghcr.io with every commit of this repository. You can give this project a try with a `docker run --rm` command like this:
```sh
docker run --rm -e INVIDIOUS_URL=htps://your.invidious.instance.url.here -p 3000:3000 ghcr.io/juandjara/freetunes
```

You can now access the running service on https://localhost:300

## Running from docker compose

You can run this project with docker compose:
```yaml
version: '3.5'
services:
freetunes:
image: ghcr.io/juandjara/freetunes
container_name: freetunes
environment:
- INVIDIOUS_URL=htps://your.invidious.instance.url.here # note this variable will be used by both frontend and backend, so it must publicly accesible
ports:
- '3000:3000'
```
## Running locally with node
You can also run this project locally from source using `node`. To do so, follow these steps:
1. Install dependencies with `npm install` or the package manager you use (yarn, pnpm, etc)
2. Copy the file `.env.example` to a new file called `.env` and fill in the `INVIDIOUS_URL` variable there.
3. Run the command `npm run dev`. This will bring up the dev server with HMR
4. Now you can access the app on http://localhost:3000

### Tech stack
- Vite SPA
- React 18.2
- Typescript
- Tailwind CSS
- React Router 6 (for data loading too)
- Headless UI

```
- Node server
- express
- vite-node
- FFmpeg

0 comments on commit 72d860c

Please sign in to comment.