Lhadalo / Hooky

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Projekt 2 - P16

A React project setup

Backend

For Mac/Linux just run the serverScript

Make sure that you are in the same folder as the serverScript (root)

./serverScript
Create a virtual environment
virtualenv --no-site-packages --distribute .env
Activate the virtual environment
source .env/bin/activate
Install requirements
pip install -r requirements.txt
Run server

After activating the virtual environment run:

python server/app.py

And open localhost:5000 in browser

Frontend

Install packages

If npm is not installed, install it from: https://nodejs.org/en/

or with homebrew:

brew install node

To set-up project go to the application folder

cd application

Now you can install all the required components by running

npm install
Build and start dev server

To build the project run:

npm start

This will build the project and start a dev server on localhost:8080 with the application. The page is reloaded automagically on any change.

About


Languages

Language:JavaScript 69.0%Language:CSS 18.2%Language:Python 11.6%Language:HTML 0.9%Language:Shell 0.2%