Giter Site home page Giter Site logo

agoric.co's Introduction

# Running the web app locally for development on macOS

1) Download virtualenv / virtualenvwrapper.sh and create 
a new virtualenv. 

Using homebrew, this can be done with the following commands:

> brew install virtualenvwrapper.sh


2) Next, we want to create a new virtualenv using Python 3.5+.

On macOS the following env variables are necessary. 
You can set them by adding them to your ~/.profile

export WORKON_HOME=~/.venvs
export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3
source /usr/local/bin/virtualenvwrapper.sh
export PATH=/usr/local/bin:$PATH
export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"
export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"
export FLASK_APP=agoricco
export FLASK_DEBUG=1


3) Now the virtualenv can be created.

> mkvirtualenv agoricco


4) Your prompt should say (agoricco) now.

5) Clone the project's git repo somewhere.

> git clone [email protected]:agoric-systems/agoric.co.git

6) Next, change into the project's directory.

> cd agoricco

7) Install the python dependencies.

> pip install -r requirements.txt

8) Change directory again into the agoricco directory
 and start the flask app.

> flask run

9) If you need to activate the virtualenv  again in the future:

> workon agoricco

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.