Git Product home page Git Product logo

visionaries's Introduction

Visionaries

Prerequisite

  • Have npm and python3 installed and accessible from the terminal.
  • Have MySQL server runned either remotely or locally. Installation Guide
  • To use the book meeting functionality, follow the steps here and place the credentials.json under backend/wellbeing/utility.

Installation

  1. Download and unzip the downloaded source code

  2. Install dependencies for the frontend

    • Under the frontend directory, run npm install
  3. Install dependencies for the backend

    • Under the backend directory, runs the following commands in terminal

      python3 -m venv venv
      source venv/bin/activate
      pip3 install -r requirements.txt
      
  4. Create a .env file under the backend root folder. Fill in the required information using the following template:

    • DATABASE_URL: The database connection string. Detail found at the SQLAlchemy Doc.
    • JWT_SECRET_KEY: The key used to sign the token issued. Genreate one by running python -c 'import os; print(os.urandom(16))' in the terminal.
    # Environment variable overrides for local development
    FLASK_APP=autoapp.py
    FLASK_DEBUG=1
    FLASK_ENV=development
    DATABASE_URL=""
    GUNICORN_WORKERS=1
    LOG_LEVEL=debug
    JWT_SECRET_KEY=""
  5. Initialize the database

    1. Ensure your MySQL server is up and running
    2. Navigate to the backend directory in the terminal
    3. Run flask createdb
    4. Run flask seed

Start the System

Ensure that you have followed the Installation steps before starting the system.

  1. Under the backend directory Visionaries/backend, run

    source venv/bin/activate
    flask run
    
  2. Under the frontend directory Visionaries/frontend, run

    npm start
    
  3. After running npm start, a url will be printed in the terminal, go to that link using any web browser to use our system. image

Useful Commands

Backend

To be run under /Visionaries/backend

  • Start the server: flask run
  • Create database tables: flask createdb
  • Drop database: flask dropdb
  • Seed the database: flask seed

Backend OpenAPI Doc

  1. After starting the backend via flask run.
  2. Go to the backend URL printed in the terminal.

image

Deployment on Could serveice

visionaries's People

Contributors

lplsz avatar echooooo-zhn avatar cassie1224 avatar ssskylar avatar naixin2029 avatar

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.