This project was bootstrapped with Create React App.
- Clone this repository
git clone https://github.com/szczursonn/media-sharing-service
cd media-sharing-service/web
- Install dependencies
npm install
- Configure
nano .env
- Run
npm run start
- (Optional) Build
npm run build
Configuration is done using enviroment variables
.env file is supported
variable | description | required? | default value |
---|---|---|---|
PORT | create-react-app development server port | NO | 3000 |
REACT_APP_API_URL | backend url | YES | - |
REACT_APP_ENABLE_MOCK_LOGIN | set to true to show enable mock login |
NO | false |
REACT_APP_DISCORD_URL | url to redirect to after clicking Login With Discord button | YES | - |
REACT_APP_GOOGLE_URL | url to redirect to after clicking Login With Google button | YES | - |
REACT_APP_GITHUB_URL | url to redirect to after clicking Login With Github button | YES | - |