Making market research tools via code
React
Flask
To install the boilerplate dependencies, you can run:
git clone https://github.com/YaleDHLab/flask-react-boilerplate
cd flask-react-boilerplate
npm install --no-optional
pip install -r requirements.txt
That will start the server on port 7082. To run the development server with hot module reloading, run:
frontend
npm run start
backend
npm run production (backend)
That will start the webpack dev server on port 7081.
To run the Javascript tests (located in src/tests/
), run:
npm run jest
To run the Python tests (located in server/tests/
), run:
pytest
To lint the Javascript files (located in src
), run:
npm run lint-js
To lint the Python files (located in server
), run:
npm run lint-py