Table of Contents
The UCLA ACM Hack website revamp.
You must have Docker installed.
-
For Mac users:
- Install Homebrew if you haven't already.
brew install dockerbrew install docker-composebrew install nodebrew install yarnyarnmake build
-
For windows users:
- Install Docker
- Windows 10 Pro: https://docs.docker.com/docker-for-windows/install/
- Windows 10 Home and below: https://docs.docker.com/toolbox/toolbox_install_windows/
- If you have Windows 10 Pro and don't have
docker-composeyet, go to https://docs.docker.com/compose/install/#install-compose to install Docker Compose. - Go to https://nodejs.org/en/download/ to install node.js
- Go to https://yarnpkg.com/lang/en/docs/install/ to install yarn
yarnmake build
- Install Docker
Run the following to get your server up at localhost:5000
$ make upIn another terminal window, run the following to enable hot-reloading with webpack:
$ yarn webpack- If the data stored in the Mongo database is not particularly important to you, to prevent schema conflicts from causing confusing problems, reset the database by running
npm run reset-database - Redis is an in-memory database. If you shutdown your computer or kill the redis server, sessions will not persist. If you need to shut down your computer or restart the redis server and want the data in the database to be restored the next time, make sure to run the command
redis-cli shutdownto safely shutdown the server.