A Material UI based dashboard built on React
- Install dependencies
sudo apt-get install nodejs git
- Install Yarn
npm install -g yarn
- Clone the repository
git clone https://github.com/Fairbanks-io/react-register/
- Change into react-register directory
cd react-register
- Install module dependencies
npm install
- Run the start script
npm start
- Navigate to http://host:3000/react-register
- Install docker compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
- Clone Repository and cd into it
git clone https://github.com/Fairbanks-io/react-register/
cd react-register
- Run docker-compose
docker-compose up -d
- Open in browser Navigate to https://localhost:3000/ Customize the default port in docker-compose file
-
Check if src/variables/SiteData.jsx exists
- If it exists, modify this file as necessary.
- If the file does not exist, copy SiteData.jsx-sample to SiteData.jsx
-
Make all modifications as necessary to SiteData.jsx
-
Add assets like images to ./public/ directory
- You may need to occasionally restart the server after adding files to this directory
- Build a new docker image with the contents of directory
docker build -t DOCKER-USERNAME-HERE/YOUR-DESIRED-IMAGE-NAME .
- login to docker
docker login
- Publish image to docker
docker push DOCKER-USERNAME-HERE/YOUR-DESIRED-IMAGE-NAME
- Deploy/run production docker container
docker run -d -p 3000:8888 --name react-register DOCKER-USERNAME-HERE/YOUR-DESIRED-IMAGE-NAME