- Clone dstar-client in Windows using git
bash:
git clone https://github.com/dstar-design-gallery/dstar-client.git
cd dstar-client
git checkout develop - Clone dsar-server in Windows using git
bash:
git clone https://github.com/dstar-design-gallery/dstar-server.git
cd dstar-server
git checkout develop-
Install Node.js and NPM in WSL: instructions.
-
Install MongoDB in WSL:: instructions
sudo apt-get install -y mongodb-org=4.2.5 mongodb-org-server=4.2.5 mongodb-org-shell=4.2.5 mongodb-org-mongos=4.2.5 mongodb-org-tools=4.2.5- After that:
tar -xzvf dump.tar.gz
cd dump
mongorestoreThis will restore the existing database.
⚠️ Do not empty the database with Mongo Shell commands likedb.collections.remove({}). This will clear the layout as well. Instead, delete all alternatives/collections using the front-end only.
- Install Redis in WSL:
sudo apt install redis-server- Install NPM packages for
dstar-client
cd dstar-client
npm install- Install NPM packages for
dstar-server
cd dstar-server
npm installℹ️ You may have package specific problems, but they can only be solved case-by-case.
All instructions in WSL bash (separate Ubuntu terminals).
- Run Redis. You need to do this only once per session.
sudo service redis-server startThen:
redis-cli
SET untitlednum 0- Running the server in WSL:
dstar-server
npm start- Running the client in WSL:
cd dstar-client
npm start run:dev- Check if Mongo is running. Again, in a new terminal.
mongoAt the prompt, type use gallery_dev. Then type db.alternatives.find({}).
If you see a whole lot of alternatives data, it means your mongo restore was successful. You may close this window now.
- Proceed to running the Grasshopper. Instructions are to be found in the DStar repo README.md.