Giter Site home page Giter Site logo

tedivm / biostar-central Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ialbert/biostar-central

0.0 1.0 0.0 96.69 MB

Biostar Q&A

Home Page: http://www.biostars.org/

License: MIT License

Shell 0.83% JavaScript 9.31% Python 64.00% CSS 3.00% Makefile 0.87% HTML 21.98%

biostar-central's Introduction

Biostar Central

Software for better science.

Biostar Central is a Python and Django 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:

Installation

The code in Biostar Central requires Python 3.6 or above.

Our installation instructions rely on conda 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.txt

The installation is now complete.

All server management commands are run through make.

Demo server

To run the demonstration version of the recipes app execute:

make recipes demo

To run a demonstration version of the forum app execute:

make forum demo

Visit http://127.0.0.1:8000/ to view the site.

Default users

All users listed in the ADMINS attribute of the Django settings.py module will gain administritave privileges when the site is initialized. The DEFAULT_ADMIN_PASSWORD attribute will be set as the default admin password. By default the value for both is:

admin@localhost

Use this username and password combination to log into the site as an administrator. Change the DEFAULT_ADMIN_PASSWORD for public facing installations.

Running the site

The Makefile has several tasks that demonstrate the commands that may be run. Typically a series of make tasks may be run. For example

Initialize and run a new recipes app.

make recipes serve

Initialize and run a demo version of the recipes app:

make recipes demo

Initialize and run an new forum app.

make forum serve

Valid tasks

  • forum, recipes: selects the app to run. It must be the first task in the list.
  • demo: runs a demonstration version
  • init: initializes the database schema
  • serve: runs the app on the default port (localhost:8080)
  • save: saves the current database content as a JSON fixture file
  • load: loads the last database save file from a JSON fixture
  • reset: resets the database (deletes all database content)
  • hard_reset: runs reset then deletes all files in the media/spool folder

Testing

To run all tests type:

make test

To test the recipes app run:

make recipes test

To test the forum app run:

make forum test

Documentation

Additional documentation for:

biostar-central's People

Contributors

abhijitpatil19 avatar alevchuk avatar aokiji avatar aswathyseb avatar dependabot[bot] avatar dpryan79 avatar dreinhold avatar egonw avatar enormandeau avatar genomax avatar ialbert avatar ichait avatar kislyuk avatar kumarrishabh42 avatar lohit13 avatar lshep avatar mas-4 avatar mirams avatar natay avatar oribyne avatar pindia avatar puntonim avatar scgruber avatar tvvocold avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.