Code Monkey home page Code Monkey logo

interactive-art's Introduction

interactive-art

Development

Run Frontend locally on port 8080

npm install
npm run serve

Go to http://localhost:8080/

Run Backend locally on port 5000

pip install -r requirements.txt
cd api
python app.py

Go to http://localhost:5000/

Backend Caching

To speed up the backend we currently have file system caching implemented. This makes sure that anything already computed is retrieved from the cache folder and not computed again

  • results will be cached forever in the filesystem unless cleared
  • to clear the cache run python clear_cache.py in the api folder
  • to clear the cache on the server see these instructions

Putting Changes Into Production

  • Run npm run build
  • If you added any Python dependencies for the api run pip freeze > requirements.txt from the root of the project
  • Commit and push your changes (including the dist folder and requirements.txt)
  • Submit a pull request to the main brain
  • To make changes live at https://interactiveart.web.illinois.edu those with cPanel access need to follow these steps

Note on API location on server

  • When running the frontend locally, requests are automatically proxied to the backend running locally (see above)
  • Once deployed, the frontend automatically makes requests to https://backend.interactiveart.web.illinois.edu as specified in the .env file

interactive-art's People

Contributors

ethan-grinberg avatar mbifeld avatar kbaga04 avatar aditi-s-4465 avatar dhruv-auti avatar rohiths2 avatar

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.