Download a Mac DMG through the Releases tab on the right or navigate to the limited web version.
- Clone this repository and its submodules:
git clone --recurse-submodules https://github.com/sarahayu/drift4.git
- Prepare the python environment.
- Drift uses python2 and python3. Make sure the command
pythonrefers to python2 andpython3refers to python3. At this time of development, the versions used arepython2.7.18andpython3.8.2.
- Drift uses python2 and python3. Make sure the command
- Run the following to install dependencies:
./install.sh
- Run the following:
It should start a development webpage on
npm start
localhost:3000. Any file changes made insrc/will be automatically reflected on the webpage. Changes made to any python files, however, will not apply until you restart thenpmcommand.
- Install the
PyInstallerpackage on python2 and python3python -m pip install PyInstaller==3.6 python3 -m pip install PyInstaller==5.8.0
- Run
make_dmg.sh. The DMG file will be found in thedistfolder asdrift4.dmg../make_dmg.sh
- Run the following command to generate static files.
npm run build.web
- Run the following command to start Drift4 in web hosting mode.
You can run
python3 serve.py -p 9899 -w
python3 serve.py -hto see a list of options.-
You can host Drift securely by providing a
.envfile with variablesPRIVATE_KEY_FILENAMEandCERT_FILENAMEthat point to your certificates before running the above command.Example
.envfile:PRIVATE_KEY_FILENAME=/path/to/privatekey.pem CERT_FILENAME=/path/to/certificate.pem
-