Skip to content
A webapp for exchanging books
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
backend
books
frontend
templates
users
.gitignore
LICENSE
Pipfile
Pipfile.lock
README.md
manage.py
requirements.txt
workspace.sh

README.md

BeX

BeX is a webapp for students to find and exchange books. It is a college-level app. Self host it for your college.

Installation

The project is divided into two, frontend (NodeJS) and backend (django) in their respective folders.

  • Clone the repo

  • Set up python virtual environment :

    sudo apt-get install npm python3-pip
    pip3 install pipenv
  • Run these from the root folder of the cloned repo :

    pipenv install
  • Activate environment :

    pipenv shell
  • Now the frontend part needs to be set up. From root folder of the cloned repo, run :

    cd frontend
    npm install
    

Running

Webpack must be ran in background to compile when the source files are changed :

cd frontend && node_modules/.bin/webpack --config config/webpack.config.dev.js --watch

To run the web server, do :

python3 manage.py runserver

So two shells must be active for development. When each source file is changed, page must be reloaded to see the changes.

You can’t perform that action at this time.