nicole-mcg / File-Server

This is a Python file-server with a ReactJS web UI
GNU General Public License v3.0
22 stars 3 forks source link

A Python script should be written for setup #34

Open nicole-mcg opened 6 years ago

nicole-mcg commented 6 years ago

It should move the existing setup.bat and setup.sh functionality to a python script and should also add new functionality:

A browser can be opened in Python using

import webbrowser
webbrowser.open('http://127.0.0.1:8080', new=2) #new=2 indicates it should open in a new tab if possible
parth-verma commented 6 years ago

Hey, i'd like to take this up.

parth-verma commented 6 years ago

According to me, it would be a better option to create this as a package downloadable via pip itself.

What do you think?

nicole-mcg commented 6 years ago

@party98 Hey, I actually created a script that fulfills my requirement. It doesn't work for Linux ATM. If this was replaced by downloading via pip, would it be able to download and install Java, and Node.js silently still?

Check run.bat which runs scripts/src/setup.ps1 which installs Python if it isn't currently installed. This then runs scripts/src/setup.py which installs Java and node if not installed and finally installs pip requirements and node modules