-
Install NodeJS, this project tries to stay on the latest LTS version (v18 as of writing)
For Windows or Mac: https://nodejs.org/en/ For Linux: https://nodejs.org/en/download/package-manager/
-
cd
into the frontend directory. -
Copy the env file
cp .env-example .env
. -
Run
npm i
to install all necessary dependencies. -
Ensure that the api server is running.
-
Run
npm run start
In the project directory, you can run:
The page will reload if you make edits. You will also see any errors in the console.
npm run start
Then open http://localhost:3000 on your preferred browser.
- Run
npm run start:lan
- Open port
3000
on your pc - Figure out what LAN IP your pc is at generally starts with
192.168.x.x
- Open your pc LAN IP on your phone e.g.
http://192.168.1.68:3000/
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes. Your app is ready to be deployed!
npm run build
Prettier is used as linter. Please install the prettier addon to your preferred editor and ensure that you lint before you save or commit.
Tests using Prettier if the code is styled correctly.
npm run lint:test
Tries to fix any missing spaces or tabs required by Prettier
npm run lint
Motive behind moving to tailwind is to decrease the bundle size of the website Tailwind CSS vs. CSS: An in-depth comparison (speed, file size, etc.)
Flag icons come from: https://flagicons.lipis.dev/ MIT LICENSE
Icons on this website uses https://feathericons.com/ MIT LICENSE