Seedstars / django-react-redux-base
- пятница, 28 октября 2016 г. в 03:16:27
JavaScript
Seedstars Labs Base Django React Redux Project
This repository includes a boilerplate project used for all Seedstars Labs applications. It uses Django as backend and React as frontend.
We build on the shoulders of giants with the following technologies:
Frontend
Backend
$ git clone https://github.com/Seedstars/django-react-redux-jwt-base.git$ cd django-react-redux-jwt-base$ git submodule init$ git submodule update$ ./scripts/get_static_validation.shRemember that when you copy this repository for a new project you need to add the scripts external module using:
$ git submodule add https://github.com/Seedstars/culture-scripts scripts# apt-get install -y build-essential libssl-dev libffi-dev libpq-dev python3-dev python-dev# wget -qO- https://deb.nodesource.com/setup_4.x | sudo bash -# apt-get install --yes nodejsMake sure npm version is 3.x
$ npm -v$ npm install -g npm@next # only if version is lower than 3.x$ npm install$ npm run dev # will run webpack with watch and compile code as it changes
$ virtualenv -p /usr/bin/python3 virtualenv
$ source virtualenv/bin/activate$ pip install -r py-requirements/dev.txt
$ cd src
$ python manage.py migrate$ python manage.py loaddata fixtures.json$ python manage.py runserverRun webpack in development mode
$ npm run dev Run Django development http server
$ cd src$ python manage.py runserverFrontend (javascript tests)
$ ./scripts/test_local_frontend.shBackend (django/python tests)
$ ./scripts/test_local_backend.shTo make sure the code respects all coding guidelines you should run the statics analysis script before pushing any code.
Frontend (javascript static analysis)
$ ./scripts/static_validate_frontend.shBackend (django/python static analysis)
$ ./scripts/static_validate_backend.shHere are some screenshots of the boilerplate project.