Giter Site home page Giter Site logo

cclj / wt_backend Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 1.63 MB

Backend services for Working Together.

Python 3.03% Makefile 0.80% C 74.02% Shell 0.64% Perl 3.15% M4 1.01% XSLT 0.01% C++ 1.63% HTML 5.12% Roff 0.13% CSS 0.03% Batchfile 0.02% Lua 0.21% Objective-C 0.44% Ruby 1.28% Tcl 8.47% Smarty 0.02% Mako 0.01%

wt_backend's Introduction

Install all the stuff you need to run the website.

You can install everything from brew (or another packet manager) In this example I'm using Homebrew Node + npm: brew install node (This command also install npm) Python (To make a virtual environment for the project in your computer): brew install python3 Angular-cli: brew install angular-cli Docker: brew install docker

Virtual Environment

pip3 install virtualenv

Recommended versions

Once you have the virtual enviroment set up download the .txt file that contains all the packages and versions you need for this project.

run "pip install -r requirements.txt"

(verify all requirements are installed, perhaps when you run python app.py you'll realize some are missing)

pip install psycopg2==2.6.1 Flask-SQLAlchemy===2.1 Flask-Migrate==1.8.0

Database

For this we are going to use PostresSQL. brew install postgres Once you have it installed to create the database use: psql postgres then CREATE DATABASE t247_dev;

\q

Redis - Server

brew install redis

A quick startup guide, in case you need it.

http://redis.io/topics/quickstart

Once you have the project installed

Change apiURL in file Angular/t247-app/src/environment.ts and environemtn.prod.ts to 'http://localhost:5000/api'. This is to avoid changes on tutoring24/7

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

Activate Virtual Environment

source env/bin/activate

Update Database

python manage.py db upgrade

Run all programs

redis-server & python app.py

Create a User

Once you have everything running, go to localhost:5000/api

Go to the tab of user and create a new user admin of your choice.

#Stop server: control-c fg control-c deactivate

wt_backend's People

Contributors

cclj avatar

Watchers

James Cloos avatar  avatar Jorge Vázquez 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.