GithubHelp home page GithubHelp logo

cstatats's Introduction

Coursestats

Release

npm ci to install dependencies

Start development mode with npm run dev

Getting dump from prod

Optional: To get started fast get a dump from the production server. You can generate a new dump with backup.sh, and it gets created under /home/studies_user/coursestats/db_backups

An example SCP command as a reminder. You need to apply correct access rights to the directory first.

$ scp -r -o ProxyCommand="ssh -W %h:%p melkinpaasi.cs.helsinki.fi" studies.cs.helsinki.fi:/home/studies_user/coursestats/db_backups/XXX_YYY/mongo ./dump

Before running the following locally make sure the directory structure is

dump/mongo/coursestats.bson

The following copies dump folder into the container and restores it. By default mongorestore checks for /dump/dbname/files. For development dbname is mongo

$ docker cp dump coursestats_studies_db:/
$ docker exec -it coursestats_studies_db mongorestore -u root -p root

Development Dotenv

Create .env file with

USES_SHIBBOLETH=true

if you want to develop with the github login fill in the following

GITHUB_ID=
GITHUB_SECRET=
GITHUB_CALLBACK=
GITHUB_REDIRECT=
GITHUB_STATE=
JWT_SECRET=

Maintainers and Contribution

Toska of University of Helsinki.

cstatats's People

Contributors

cxcorp avatar dependabot[bot] avatar granigan avatar jakousa avatar kaltsoon avatar keskimaki avatar mluukkai avatar saarasat avatar

Stargazers

 avatar

Watchers

 avatar  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.