Giter VIP home page Giter VIP logo

Comments (2)

amdw avatar amdw commented on July 28, 2024

I'm going to assume the question here is what it would take to run PeopleMath as a production application on a private server, rather than on Google App Engine, which is what the README instructions tell you how to do.

This should certainly be possible, but it would require some more work, probably including some changes to the application.

Firstly, you'll need to decide what persistent storage mechanism you're going to use for your data. The current backend (in the backend folder) supports only Google Cloud Datastore, so assuming that won't be available to you in your environment, you'll need to write a new implementation of the Go StorageService interface for your chosen data store.

Then, you'll either need to add command-line parameters to main.go that allow you to select and configure that data store (similar to what --inmemstore does now), or add a new Go binary that starts the backend server using your storage service.

Then, you'll need to write configuration for whatever web server you're going to use, to achieve the same thing as the App Engine app.yaml file, i.e. /api/* and /improve requests should be proxied to your backend, requests for the Angular assets (HTML, JavaScript, CSS etc) should be served from a static location, and all other URLs should just serve index.html.

I'd be happy to accept a pull request along these lines, provided the data store and web server you intend to use are reasonably mainstream (please read CONTRIBUTING.md first). If you're going to do this, please add a section to the README describing how to deploy in your chosen environment.

It's also important that the README's existing instructions for deploying on Google App Engine remain correct.

I hope this helped!

from peoplemath.

amdw avatar amdw commented on July 28, 2024

Closing this issue as I believe the question is answered.

If you'd like to contribute backend code for a specific persistent storage mechanism, and/or configuration and instructions for a specific web server, please feel free to open issues specific to those features. Many thanks!

from peoplemath.

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.