Code Monkey home page Code Monkey logo

Comments (5)

kinshukdua avatar kinshukdua commented on June 16, 2024 1

@laurin merged #12!

from liveactionmap.

DomiiBunn avatar DomiiBunn commented on June 16, 2024

Also also. Would you have a way to communicate more live? I'd say discord?

from liveactionmap.

DomiiBunn avatar DomiiBunn commented on June 16, 2024

As I'm looking at the code. It generates an index.html
I haven't ever really touched python but would it be possible for it instead of generating the file to host the data live? Maybe run a scrape every 5-10 mins and host the file? This would make the app more scalable. Even better would be if the backed was to save the data to a DB and then have a middleware serving the actual map data. But that might be a little over the top...

from liveactionmap.

kinshukdua avatar kinshukdua commented on June 16, 2024

@DomiiBunn yes, my discord is superboyk#5755
I agree with your suggestion to dockerize, however I have limited experience with docker.
Currently I'm doing the following to host the files. I'm using a simple apache server to host the static html file.

  1. Create a shell script to a) add environment variable, b) run scrape.py to create an index.html file, c) move index.html to /var/www/html
  2. Setup a cron job to call the script every 10 minutes

from liveactionmap.

laurin avatar laurin commented on June 16, 2024

I'm currently working on containerizing this.
I think it would be best if we can merge #12, so the generated file can be mounted easily

from liveactionmap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.