To access a hosted version of this repository, please visit
- Git
- Python
- npm (node)
- Postgresql
```bash
python -m venv venv
source venv/bin/activate
```
```bash
For example you could run the following in a terminal;
psql -h localhost -U user_name
create database research_dev;
```
```bash
./first-time-setup.sh
```
```bash
flask run
```
-
Activate your venv
source venv/bin/activateOr, on Windows
venv\Scripts\activate.bat
-
Run flask
flask run
-
Download & Install python/git/npm (if you haven't already)
Or, for linux (debian)
sudo apt install python
Or, for linux (debian)
sudo apt install git
Or, for linux (debian)
sudo apt install nodejs
-
Clone this repository:
git clone https://github.com/dwalsh01/research-project.git
Windows and Mac users can use Github Desktop
-
Then create a "virtual environment":
Do this in the "research-project" directory.
mkdir venv python -m venv venv -
You must then activate the virtual environment:
source venv/bin/activatevenv/Scripts/activate.bat
-
Install the requirements:
pip install -r requirements.txt
-
Setting up the postgres db:
- Install postgresql
- Create a database called "research_dev"
- Ensure you have a db running locally called "research_dev"
flask db init flask db migrate flask db upgrade -
Now we move on to installing the ReactJS frontend:
- install dependencies with npm:
cd research-react npm install npm run-script build -
To run the project:
flask run