Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

README.md 1.7KB

3 år sedan
3 år sedan
3 år sedan
123456789101112131415161718192021222324252627
  1. One of the key deliverables for Work Package 6 of the COPIM project is "an online resource detailing opportunities for experimental book publishing". We've decided to put this together in the form of an online toolkit with details of software, practices, examples, and sensitivities that can be used for experimental publishing.
  2. The online toolkit will build on this review of tools to present a resource for a researcher, artist, or publisher looking to try experimental publishing. From our preliminary design discussions, we have plans to include not only software tools that can be used to do experimental publishing but examples of experimental publications, practices of experimental publishing, publishers who have done some form of experimental publishing, and sensitivities involved in experimental publishing.
  3. ## Database functions
  4. This repository contains a shell script to perform various database functions including importing a whole database from SQL file, exporting the database in SQL, exporting individual tables as tab-delimited txt file, and importing individual tables from tab-delimited txt file.
  5. Run `./database_functions -h` to see the instructions for this script.
  6. ## Legacy instructions:
  7. The following is no longer required in Flask-SQLAlchemy 3. See https://stackoverflow.com/questions/73968584/flask-sqlalchemy-db-create-all-got-an-unexpected-keyword-argument-app
  8. For creating database and user in production:
  9. `docker-compose exec -it db mysql -u root -p`
  10. `CREATE DATABASE toolkit;`
  11. `CREATE USER 'flask'@'%' IDENTIFIED BY '[PASSWORD]';`
  12. `GRANT CREATE, INSERT, UPDATE, SELECT, DELETE ON toolkit.* TO 'flask'@'%';`
  13. To build the database run:
  14. `docker exec -it python python`
  15. `from app import db, create_app, models`
  16. `db.create_all(app=create_app())`