yarn setup- Create an
.envfile at the root of the project with the following variables:
REACT_APP_USERNAME=yourusername
REACT_APP_PASSWORD=yourpassword
REACT_APP_SERVER_DEV=http://localhost:8000
- Add same username and password with
htpasswdtoserver/users.htpasswd
yarn start:server
yarn start:fe
sudo apt-get install apache2-utils
htpasswd -Bc server/users.htpasswd admin
yarn start:prod
-
Files with over 2GB are not supported.
-
yarn installis meant for the server only. -
.envadmin/password need to match the ones in the server, defined in the fileusers.htpasswdunder /server (check http-auth for more information about the authentication method used). Currently those credentials are encrypted using bcrypt. -
Don't encrypt the credentials in the
.envfile. -
The url for the server can be changed. Make sure not to include a forward slash at the end of it and make sure to include the port if needed.