Commit
Mostly ported from MusicBrainz Server setup.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"presets": ["es2015", "stage-2"], | ||
"plugins": [ | ||
"transform-react-jsx", | ||
"transform-react-constant-elements", | ||
"transform-react-inline-elements" | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#!/bin/sh | ||
|
||
apt-get -y install memcached node-less python-virtualenv python-dev ipython pxz | ||
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash - | ||
apt-get -y install memcached python-virtualenv python-dev ipython pxz nodejs |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
#!/bin/sh | ||
|
||
# Setting up the application | ||
if [ $# -eq 1 ] | ||
then | ||
cd $1 | ||
else | ||
echo "Application directory is not specified. Using current directory!" | ||
fi | ||
|
||
echo "source venv-acousticbrainz/bin/activate" > ~/.bashrc | ||
virtualenv ../venv-acousticbrainz | ||
source ../venv-acousticbrainz/bin/activate | ||
|
||
pip install -U pip | ||
pip install -r requirements.txt | ||
|
||
python manage.py init_db | ||
python manage.py init_test_db | ||
|
||
npm install | ||
./node_modules/.bin/gulp | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
gentlecat
Author
Contributor
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
require('babel-core/register'); | ||
require('./webserver/static/gulpfile'); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"name": "acousticbrainz-server", | ||
"version": "0.0.0", | ||
"description": "package.json for keeping track of nodejs dependencies for acousticbrainz-server", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/metabrainz/acousticbrainz-server.git" | ||
}, | ||
"dependencies": { | ||
"babel-core": "6.2.1", | ||
"babel-plugin-transform-react-constant-elements": "6.1.20", | ||
"babel-plugin-transform-react-inline-elements": "6.1.20", | ||
"babel-plugin-transform-react-jsx": "6.2.0", | ||
"babel-preset-es2015": "6.1.18", | ||
"babel-preset-stage-2": "6.1.18", | ||
"babelify": "7.2.0", | ||
"bootstrap": "3.3.6", | ||
"gulp": "3.9.0", | ||
"gulp-less": "3.0.5", | ||
"gulp-rev": "6.0.1", | ||
"gulp-streamify": "1.0.2", | ||
"highcharts": "4.2.0", | ||
"jquery": "2.1.4", | ||
"less-plugin-clean-css": "1.5.1", | ||
"lodash": "3.10.1", | ||
"q": "1.4.1", | ||
"react": "0.14.3", | ||
"vinyl-source-stream": "1.1.0", | ||
"yarb": "0.5.1" | ||
}, | ||
"private": true | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,11 +47,16 @@ def create_app(): | |
from webserver.errors import init_error_handlers | ||
init_error_handlers(app) | ||
|
||
# Static files | ||
import static_manager | ||
static_manager.read_manifest() | ||
|
||
# Template utilities | ||
app.jinja_env.add_extension('jinja2.ext.do') | ||
from webserver import utils | ||
app.jinja_env.filters['date'] = utils.reformat_date | ||
app.jinja_env.filters['datetime'] = utils.reformat_datetime | ||
app.jinja_env.filters['make_static_path'] = static_manager.get_file_path | ||
This comment has been minimized.
Sorry, something went wrong.
alastair
Collaborator
|
||
|
||
# Blueprints | ||
from webserver.views.index import index_bp | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build |
This file was deleted.
This file was deleted.
I'd like to see a file watcher to run gulp when stuff changes (for development). Can we add a script somewhere which is easy to start up? I've heard that this can be problematic on virtualbox shared folders. Have you encountered it before?