The website for the https://futurefactory.nl.
Extensive documentation can be found at https://roboteamtwente.github.io/future_factory_website
This website is build with Django as a back-end server and uses a template from Creative Studio, which makes use of NPM and gulpfile.js in order to generate all the files.
This project requires a working python installation and NPM.
- Clone this repository
- Install the requirements with
pip install -r requirements.txt
- Set environment variables
DEBUG
should beTRUE
during development.- This will create a local database.
DJANGO_KEY
set this to a random string.BETA
is deprecated.
- Run the migrations with
python manage.py migrate
- Create a superuser with
python manage.py createsuperuser
- Run
python manage.py runserver
You should now be able to open the local running website at 127.0.0.1
and sign in into the admin environment, located
at 127.0.0.1/admin
.
The front-end is server-side rendered with the Django templating system, however we do use Bootstrap and some JavaScript magic to properly package this application. In order to update the front-end and compress all images use:
- Move into the
static
folder. - Run
npm start build
, this will do the following:- Compile sass into css
- Compress css
- Compress JavaScript
- Compress images
- Copy high quality images
- Move all items into the
dist
folder in static.
Note: If you want to keep a high quality copy of an image, then prepend its name with high
. This image will not be
compressed.
All the relevant information about the back-end can be found on the corresponding github.io website