https://ucsc-geolocator.vercel.app/
- Open windows powershell and do
wsl --install - For convenience do
wsl --set-default Ubuntuso that you can type wsl to start up the linux environment. Follow the instructions - Open a code editor like VSCode and go to the server directory
- Run
wsland paste the commands at the following url to install Redis: Redis community edition for windows - Do
sudo service redis-server startto initialize redis - Go to the redisData folder
- Do
redis-cliand copy the config information into a .env file in this folder. The env file should set HOST to localhost, DATABASE_PORT to the port shown from the command, and DATABASE_NUM to 0 - Create a file in this folder called __init__.py so that Flask can recognize getNearby.py
- Open a new terminal and go to the server directory.
- Do
python -m venv myenv - Activate the virtual environment through
myenv/scripts/activate - Install dependencies through
pip install -r requirements.txt - Run
python model.pyand make sure geolocator.keras is created in the server directory - Create a folder caled images inside server and a folder called upload inside images (this is just for temporarily storing uploaded photos)
- Run Flask server through
python main.py
- Open a new terminal and go to the client directory
- Install the latest node version if you haven't already done so
- Do
npm install - Do
npm run start - This should open a new tab in your browser.
- Add an image and click upload.