covid19
covid19 copied to clipboard
Deploy this in macOS
Hello! Thank you very much for this tool. I have been trying to deploy this webapp in my macOS, and I have got a lot of issues. Hopefully, with a help of a friend, some coffe and a good amount of hours I ended up with these instructions:
- You'll need to have "tac" command. Is included in linux, but not nativelly, at least in my version of macOS
brew update
brew install coreutils
brew upgrade coreutils
Be sure that the "tac" command works well. Type "tac README.md" and you should read all the lines in inverse order.
If you have installed coreutils but the "tac" command is not working, the command it is probably associated with "gtac", so try "gtac README.md". If this works, do:
ln -s /usr/local/bin/gtac /usr/local/bin/tac
- Install Node.js (https://nodejs.org)
- Install yarn
brew install yarn
- Install serve
sudo yarn global add serve
- Clone:
git clone --recursive https://github.com/stevenliuyi/covid19.git
- Install:
yarn —recursive
- Build:
yarn build
- Serve:
serve -s build
Thank you for sharing!