Frontend of Auth Service for the Open Tree Hole project.
Install This installation is just for frontend program. If you want to deploy the whole OpenTreeHole project, please visit Deploy Repo.
This project continuously integrates with docker. Go check it out if you don't have docker locally installed.
-
Download the docker-compose.yaml.
wget https://github.com/OpenTreeHole/auth_frontend/blob/master/docker-compose.yaml
-
Create a
.env
file under the same directory withdocker-compose.yaml
.nano .env
To know more about environmental variables in docker, visit Environment variables in Compose.
-
Set all environmental variables. The required env variables are listed below. These env variables would be used to replace the bundled js by
entryPoint.sh
, and it uses | as separator. Thus, if you need to use | in your env variable, please use \ to trope it.# .env file # The backend api address for Auth AUTH_URL=https://auth.fduhole.com/api/ # The domain used to store cookie. # For local deployment, this should be localhost . COOKIE_DOMAIN=.fduhole.com
-
Docker Compose
Check if the port 3001 is available. You can change these port in
docker-compose.yaml
.docker-compose up
-
Visit http://localhost:3001/ to see if the deployment is successful.
Feel free to dive in! Open an issue or submit PRs.
# Clone the repository
git clone https://www.github.com/OpenTreeHole/auth_frontend.git
cd auth_frontend
# Install Dependencies
yarn
# Run The Dev Server
yarn serve
To build the project, run
yarn build
Confirm that you've modified the env variables in .env.production
.
This project exists thanks to all the people who contribute.