Many of the things we consume we need but seldom use. Usership describes a mode of possession centered around sharing fewer objects within a group, rather than individual ownership of these items. The benefits of usership are cost efficiency and reduced consumption.
This is a work in progress.
- Establish the MySQL server. I did this locally:
- Download MySQL (note the SQL code in this repo is for v8.0.30)
- Install MySQL. For instance, in Mac OS shell:
brew install mysqland thenbrew services start mysql - You can now log into the DBMS with
mysql -u rootif you don't have a password, ormysql -u root -pif you do.
- If you're starting afresh, instantiate the tables:
source /usership/data-access/create-tables.sql
- Import dependencies. The following commands import the dependencies in the go.mod file:
cd usershipgo get .
- While still in the data-access folder, run go.main to connect to your database according to your user and password (if you have one):
export DBUSER=rootexport DBPASS=go run .- The interface will launch
- Investigate data connections. mysql
or just dataframes in the meantime? - Establish database structure
- Write functions for accessing database. Remaining functions:
- Return items by matching name
- For a given item ID, return its current user
- Add an item
- Delete an item
- Add a user
- Delete a user
- Change the current user of an item
- Change the contact info of a user
- Write interface.
