Giter Site home page Giter Site logo

QuantU

This is the main application repository for QuantU.

Installation

npm install

Setup environment

cp .env.example .env

# set GOOGLE_OAUTH_CLIENT_ID, GOOGLE_OAUTH_CLIENT_SECRET in .env
# generate a value for JWT_SECRET_KEY, and set it in .env
npm run secret

Setup database

Seeding the DB

npx prisma db seed

Option 1 : docker-compose mongo backend

npm run mongo

# now sign-in with your user in the frontend
# then login to mongo and make your user a creator
mongo -u root -p password admin
> use quantu-app
> db.User.updateOne({username: "nathanfaucett"}, {$set: {creator: true}})

# set DATABASE_URL in .env

Option 2 : set DATABASE_URL

If you have a local mongo db or online instance, just set DATABASE_URL in the .env to have the app connect to the db.

Connect to remote

kubectl port-forward --namespace ui svc/quantu-app-postgresql 5432:5432
kubectl port-forward --namespace ui svc/quantu-app-mongodb-headless 27017:27017

Development

Prisma

After any updates to the database schema in prisma/schema.prisma you should run npm run prisma generate to update the type defs.

Deployment

export KUBECONFIG=~/my/path/to/appname-kubeconfig.yaml
NODE_ENV=production npm run helm

QUANTU's Projects

QUANTU doesnโ€™t have any public repositories yet.

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.