Giter Site home page Giter Site logo

cable's Introduction

Dependencies:
	Python Django
	MySQL
	Node
	React compatible browser

// -----

Setting up:
	inside '/backend':

		in '../api/views.py':
			find 'client' variable:
				replace "bacdive.BacdiveClient" arguments to credentials to use 
				(shown as ('email', 'password')) from https://api.bacdive.dsmz.de/

		in '../bacdiveapi/settings.py':
			find "DATABASES":
				configure DATABASE profile to match system requirements/if database already exists.
				(Django will handle the schema and making the database if it doesn't exist)
				
				if database doesn't exist:
					inside '/backend':
						python manage.py migrate
						python manage.py makemigrations


	inside '/interface':
		npm install

// -----

To run:

	open two terminals (one for the server and one for the interface)

	(opens a virtual environment to run server in)
	run terminal inside '/backend':
		python -m venv venv
		venv\Scripts\activate
		python manage.py runserver

	(opens interface)
	run terminal inside '/interface':
		npm start

// ------------------------------------------------

Making changes:

	Schema changes:
		schema can be found in '../api/models.py'
		changes will have to be reflected in '../api/serializers.py' for functions

	Function changes:
		functions can be found in '../api/views.py'
		check serializers used in '../api/serializers.py'
		functions can be made usable in '../api/urls.py'

	---

	any changes made to the backend requires running:
		python manage.py migrate
		python manage.py makemigrations

// ------------------------------------------------

Known Issues and Troubleshooting:

- While connection to the BacDive API has been accomplished and strains can be downloaded, downloading BacDive data from some strains will fail because of the non-uniformity of the information/number of items per field employed by some strains. This will require a more thorough schema fix.

- BacDive search returns a 500 error when query is invalid/nothing is found. This can be safely ignored.

- BacDive search will occasionally return a 400 error, replicably from inactivity, sometimes even if search query is valid. To fix this, restart Django server or manually log-in credentials in https://api.bacdive.dsmz.de/. There is no need to restart browser interface.

- Directly moving to the "BacDive search" header route from the "edit strain" page will result in a 400 error. This results in no changes to the data and can be safely ignored. Move back to the individual strain/strains list before moving back to the bacdive search.

cable's People

Contributors

rougeslegion avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.