- Clone this repository (git clone [url])
- Navigate into the newly created
project-portaldirectory - Navigate into the "client" directory:
cd client - Install required dependencies:
npm install - Start the server:
npm run serve
- Clone this repository (git clone [url])
- Navigate into the newly created
project-portaldirectory (probably justcd project-portal) - Navigate into the "server" directory:
cd server - Create a virtual environment:
python3 -m venv venv. If this command doesn't work you may need to update your Python3 installation or install a special package (for Debian or Ubuntu). - Activate virtual environment:
. ./venv/bin/activate - Install required dependencies:
pip install -r requirements.txt - Set up the database (see below)
- Start the Flask server:
make run. Alternatively you can use the normal Flask command line tool:flask run.
You will also need to create the DB at some point on your local machine before you can use anything (see below).
Any other time you need to develop, all you need to do is cd into the server directory and activate your virtual environment again.
- You'll need to create a
config.pyfile in theserver/folder with the variableSQLITE_DB_URIdefined. You can use the following example
# config.py
SQLITE_DB_URI = 'sqlite:///tmp/test.db'
- You can run
python db-init.pyto create all database tables. - You can also run
python db-restart.pyto delete and then recreate all tables. Be aware that running this will delete any data you have stored in your database.
-
Client is deployed through deployinator. As long as the
/distdirectory is up-to-date with the recently built version, it should work. -
Server needs to be restarted through cPanel