Code Monkey home page Code Monkey logo

conp-portal's Introduction

CONP Portal

Requirements

This code requires Python 3.7

Python Virtual Environment

Create a Python virtual environment called venv and install Flask dependencies

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Run Application

You can run the application locally with

python3 run.py

The application will be live on http://0.0.0.0:5000/

Get the dataset repository

   git submodule add [email protected]:CONP-PCNO/conp-dataset data

The search will be executed on this data repository

Localhost Database

Create a localhost Postgres database named conp with owner postgres

createdb conp --owner=postgres

Export database credentials with

export DATABASE_URL="postgresql://localhost/conp"

If you get a fe_sendauth: no password supplied error, then use this command instead

export DATABASE_URL="postgresql:///conp"

Create tables with

flask db upgrade

AWS Cloud9 (Experimental)

Some experimental testing cases are being explored with AWS Cloud 9.

To run the application on a Cloud9 instance:

    flask run --host=0.0.0.0 --port=8080

Deployment

This flask application is deployed on Heroku. More information will be available soon

conp-portal's People

Contributors

paiva avatar candicecz avatar h0bb3s87 avatar

Watchers

James Cloos 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.