A terminal message passing app powered by Supabase with authentication and realtime messaging support: box open global
| recommended node versions: v16-17
- clone this repo
- create a
.env
file in the root project dir (contact me for keys if you want the global database!) npm i
npm link
- run
box --help
for a list of commands
- create an
.env
file and provide the values specified in.env.example
- create a supabase project with the following tables
![image](https://private-user-images.githubusercontent.com/41360054/289337098-99889d33-4fad-4a25-9eba-6d1c696b4a67.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4Mzg3NTMsIm5iZiI6MTcyMzgzODQ1MywicGF0aCI6Ii80MTM2MDA1NC8yODkzMzcwOTgtOTk4ODlkMzMtNGZhZC00YTI1LTllYmEtNmQxYzY5NmI0YTY3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE2VDIwMDA1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQzNDU2NGIyNWUyZTZlZWQ0YmMyOWViZmU5YjI2ZWI2ZmJkNzNlNWM0YTM2NTAxNDM0YTY4NGYzYTk0ZmEyNzYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.cPipAALHPgBcRfiHi87ktUMlAoBmGmyhbu9WpgQxDac)
![image](https://private-user-images.githubusercontent.com/41360054/289337246-ba8feacb-23fb-44e1-818f-252626ce6e53.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb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ElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE2VDIwMDA1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY2NjMyMDU0ODhhMDZlMGYyYThlODQyMDlhNjgxZDljZmNhMmFlZTkyNWY1NjU0MmI1MDg0ZTExYTRlMWQ4YmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.tIi4KDKiqNJwho-J1ZU1V0llxC7v5B92xxvshG-N2EA)
![image](https://private-user-images.githubusercontent.com/41360054/289337293-e9a3043f-4534-491e-a746-c5dfdcb02d5a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4Mzg3NTMsIm5iZiI6MTcyMzgzODQ1MywicGF0aCI6Ii80MTM2MDA1NC8yODkzMzcyOTMtZTlhMzA0M2YtNDUzNC00OTFlLWE3NDYtYzVkZmRjYjAyZDVhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE2VDIwMDA1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFmNmYxZTk0Yjk5ZWEyYjNkNDkyYmFhZmU4MTM5MzI4ZjIxODgyMThkN2MyZjM3Y2QwZmZhZTEzYTYxNmJmYTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.S8nifEqy61vtOfJMELNnAn56b7uAOAWUR87dVIjAdcQ)
![image](https://private-user-images.githubusercontent.com/41360054/289337315-56d111af-6ffa-429c-bc58-0df055d8e722.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4Mzg3NTMsIm5iZiI6MTcyMzgzODQ1MywicGF0aCI6Ii80MTM2MDA1NC8yODkzMzczMTUtNTZkMTExYWYtNmZmYS00MjljLWJjNTgtMGRmMDU1ZDhlNzIyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE2VDIwMDA1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUzYzQzNjhiNTIyYzVhNGVlY2MzNGU5YzY3MGYxNDQ4Y2M2ZWVmYzYwMzdhNDU2ODRiOWY5MGI3NWRkZGFjOTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.RNk3dPsOiWAq2A0QhMI7I2qGbENd4BmgKQ9s7IOWXvc)
Channels
are public but you could enable RLS for them as well.
ex box
command:
box ship dev "$(ls ./some/dir)" # sends the out put of a bash command to the dev channel
run box
for details!