RadioFM is a publicly available website radio which hosts a manages a queue of songs 24/7. People from all over the world can tune into RadioFM and chat via the text chat, like songs, create accounts, and chill out.
The production server for RadioFM is available at https://radio-fm.fly.dev
The dev server for RadioFM is available at https://radio-fm-dev.fly.dev
We have chosen Fly.io as our deployment service as it is quick and easy to setup. Both our dev and prod deployments are running through Fly.io.
- Install NodeJS https://nodejs.org/en/
- Install Yarn:
npm install --global yarn - Install PostgreSQL: https://www.postgresql.org/download/
- Install pgAdmin: https://www.pgadmin.org/download/
- Create a database within pgAdmin
- Create a
.envfile withinsrc/server/src/prisma- Add a
DATABASE_URLenvironmental variable with the following formatpostgresql://USER:PASSWORD@HOST:PORT/DATABASEreplacing all uppercase words with your database's identity.- E.g.
DATABASE_URL=postgresql://postgres:pass123@localhost:5432/RadioFM
- E.g.
- Add a
- Run
yarn - Run
yarn prisma generate - Run
yarn prisma migrate dev - Run
yarn server seed - Run
yarn web build && yarn web export- There is an issue with Windows and one of our configurations. This command will only work on Linux or MacOS machines.
- There is a workaround: Find the
src/web/next.config.jsfile and remove the..from../serveron the first line. - Rerun the command.
- Run
yarn server startand access your website via a browser athttp://localhost:8080