To install the dependencies, you can run:
git clone https://github.com/nuwanarti/protein-analysis-frontend-backend.git
cd protein-analysis-frontend-backend
npm install --no-optional
pip install -r requirements.txt
Once the dependencies are installed, you can start the api with the following command:
npm run production
That will start the server on port 7082. To run the development server with hot module reloading, run:
npm run start
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