1
0
Fork
You've already forked tessplace
1
No description
  • Python 28.4%
  • JavaScript 25.5%
  • TypeScript 22.9%
  • HTML 15.9%
  • CSS 6.2%
  • Other 1.1%
2025年06月20日 13:33:08 -04:00
frontend Add official Overland support 2025年06月20日 13:33:08 -04:00
integration-tests Move backends into node-backend and py-backend 2025年06月20日 09:55:03 -04:00
node-backend Move backends into node-backend and py-backend 2025年06月20日 09:55:03 -04:00
py-backend Move backends into node-backend and py-backend 2025年06月20日 09:55:03 -04:00
.editorconfig Initial commit 2023年06月12日 20:10:53 -04:00
.gitignore Put together basic node/typescript backend 2025年06月14日 15:45:22 -04:00
LICENSE Add License 2024年06月12日 15:09:10 -04:00
package-lock.json Test google maps share links 2025年06月15日 17:04:18 -04:00
package.json Test google maps share links 2025年06月15日 17:04:18 -04:00
README.md Move backends into node-backend and py-backend 2025年06月20日 09:55:03 -04:00
run.sh Move backends into node-backend and py-backend 2025年06月20日 09:55:03 -04:00
test.sh Add tests 2025年06月15日 04:57:33 -04:00
tsconfig.json Move backends into node-backend and py-backend 2025年06月20日 09:55:03 -04:00

tess.place

A location sharing frontend for tracking Tess and other people. This code is deployed to tess.place.

Tech

The backend is Python using the Sanic web framework. The frontend is pure HTML, CSS and js and uses the Leaflet OpenStreetMap library for maps.

Set up a dev env

With python3 installed, run this in the project root directory:

python -m venv venv && venv/bin/pip install -r py-backend/requirements.txt

You can now run this to typecheck the backend and run it locally:

venv/bin/python py-backend/server.py --dev

At the top of the sanic box will be a local IP:port, go to this in your browser to test. You can simulate a location update by sending a POST request with curl to the GPS logger URL.

Deploying

Deploying should be much the same as setting up a dev environment, except that you leave off the --dev and put something like nginx between the backend and the internet (for logging/SSL support/etc). here is the nginx config I use.