Git Product home page Git Product logo

marusocare's Introduction

Tuware Website

Setup

  1. git clone https://github.com/tuwarerepo/tuware-website2.git or git clone [email protected]:tuwarerepo/tuware-website2.git
  2. cd tuware-website2
  3. nvm install lts/erbium or nvm use
  4. npm install
  5. git submodule init && git submodule update
  6. npm start (to run development environment)

Virtual environment

  1. mkvirtualenv -p python3.7 tuware-website-2020

Add these lines to .virtualenvs/tuware-website-2020/bin/postactivate and replace [PATH_TO_YOUR_REPOSITORY] with the path

export FLASK_APP="main.py"
export FLASK_ENV="development"
export FLASK_CONFIG="development"
export FLASK_RUN_PORT="8080"
export CLOUDSDK_PYTHON="`which python3.7`"
export PRIMARY_BRAND="tuware"
export ALLOW_CONFIG_OVERRIDE="true"
export GOOGLE_APPLICATION_CREDENTIALS="[PATH_TO_YOUR_REPOSITORY]/tuware-website-2020/tuware-google-service-account-credentials.json"
export SECRET_KEY="8GphcNUsgkGfMKVS8876AkKypDNTbFQrfnGKzSZEZMpcArVzx2xwwzfA4RnyjCxvVdnhvt"
export GAE_USE_SOCKETS_HTTPLIB="anyvalue"

Make sure you've downloaded Google Service Account Credentials.

  1. deactivate
  2. workon tuware-website-2020
  3. pip install -r requirements.txt
  4. pip install -r requirements.txt -t lib/

Node setup

ONLY if cleaning is necessary:

  1. npm cache clean --force
  2. rm -r node_modules/
  3. rm package-lock.json

Default installation process:

  1. nvm install lts/erbium or nvm use
  2. npm install
  3. npm audit fix
  4. npm run-script build

Building for Github.io

  1. npm run-script build

Add code changes in the dist/ directory and push to remote

Deploying to Google App Engine

gcloud app deploy

marusocare's People

Watchers

 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.