Clone the repo
$ git clone [email protected]:Rosswell/variant-search-app.git
React is not dockerized, so the React app is run locally.
Navigate to the client directory and install the libraries from package.lock with yarn:
$ cd variant-search-app/services/client
$ yarn install
or with npm:
$ cd variant-search-app/services/client
$ npm install
Spin up the postgres/flask docker container. This will serve the API endpoints at 0.0.0.0:5001.
$ cd variant-search-app
$ docker-compose -f docker-compose-dev.yml up -d --build
Create and fill the DB
$ docker-compose -f docker-compose-dev.yml run genes python manage.py recreate-db
$ chmod +x load_data.sh && ./load_data.sh
Start the React app
$ cd variant-search-app/services/client
$ npm start
# or, with yarn:
$ yarn start
Flask tests
$ cd variant-search-app
$ docker-compose -f docker-compose-dev.yml run genes python manage.py test
React tests
$ cd variant-search-app/services/client
$ npm test
# with yarn:
$ yarn test
- Build a static API route
- Attach API to sqlite DB, make API dynamic
- Serve API through Docker
- Discover sqlite table is empty, put postgres in Docker as well
- Serve data from postgres to gene query endpoint
- Start actually inspecting data, discover some intricacies there not previously considered
- Lists represented as strings
- Variable null value nomenclatures
- At least 10 different shorthand ways of representing a variant
- Relationships between
other_mappings
and other fields
- Stand up frontend
- Create MVP dynamically rendered components
- Create table components and associated subcomponents
- Style table components
- Backfill python tests
- Write React tests
Please let me know if there are any issues! I think I'm going to continue to work on this since I wasn't able to dockerize the React app or host on AWS or any fun things like that