- Notifications
You must be signed in to change notification settings - Fork231
ialbert/biostar-central
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Biostar Central is aPython andDjango based collection of web applications that support scientific practice and education.
The goal of the project is to produce software with straightforward installation and minimal dependencies that works on any computing platform that supports Python. For each app the philosophy is that of decentralization and self hosting. We write our code to allow others to recreate the same services that we run.
Each web application may be deployed individually or in combination with the others. The following applications are currently feature complete:
foruma web app that runs a Q&A forum inspired by StackOverflow, see:Biostars Q&Arecipesa web app that can runs data analysis scripts, see:Bioinformatics Recipes
The code inBiostar Central requiresPython 3.6 or above.
Our installation instructions rely onconda though other alternatives for managing python environments are equally viable.
# Create a virtual environment.conda create -y --name engine python=3.6# Activate the python environment.conda activate engine# Clone the source server code and the recipe code.git clone https://github.com/ialbert/biostar-central.git# Switch to the biostar-engine directory.cd biostar-central# Install server dependencies.pip install -r conf/requirements.txtThe installation is now complete.
All server management commands are run throughmake.
To run the demonstration version of therecipes app execute:
make recipes demoTo run a demonstration version of theforum app execute:
make forum demoVisithttp://127.0.0.1:8000/ to view the site.
All users listed in theADMINS attribute of the Djangosettings.pymodule will gain administritave privileges when the site is initialized. TheDEFAULT_ADMIN_PASSWORD attribute will be set as the default admin password.By default the value for both is:
admin@localhostUse this username and password combination to log into the site as an administrator. Change theDEFAULT_ADMIN_PASSWORD for public facing installations.
The Makefile has several tasks that demonstrate the commands that may be run. Typically a series ofmake tasks may be run. For example
Initialize and run a newrecipes app.
make recipes serveInitialize and run a demo version of the recipes app:
make recipes demoInitialize and run an newforum app.
make forum serveforum,recipes: selects the app to run. It must be the first task in the list.demo: runs a demonstration versioninit: initializes the database schemaserve: runs the app on the default port (localhost:8080)save: saves the current database content as a JSON fixture fileload: loads the last database save file from a JSON fixturereset: resets the database (deletes all database content)hard_reset: runsresetthen deletes all files in the media/spool folder
To run all tests type:
make testTo test therecipes app run:
make recipes testTo test theforum app run:
make forum testAdditional documentation for:
About
Biostar Q&A
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.