Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

start http and html skelleton #1

Merged
merged 17 commits into from
Feb 9, 2021
Merged

start http and html skelleton #1

merged 17 commits into from
Feb 9, 2021

Conversation

cryptix
Copy link
Member

@cryptix cryptix commented Feb 4, 2021

ground work for router and templating setup.

TODO:

  • tests (98ca4f8)
  • i18n
  • embedded assets (css, js, etc.)
  • sqlite
  • basic auth as a stub for sign-in with ssb

TODO: default files once embedded assets are there
this is part of the NGI work and should be clearly indicated as such
README.md Outdated Show resolved Hide resolved
@cryptix cryptix marked this pull request as ready for review February 8, 2021 16:48
@cryptix
Copy link
Member Author

cryptix commented Feb 8, 2021

Nearly done. Will add logged in? template helper tomorrow to show a log out button conditionally on the users state. Then it should be good to merge.

{{is_logged_in}} returns a *admindb.User value or nil depending on their
state. This can be used to build conditional rendering.
@cryptix
Copy link
Member Author

cryptix commented Feb 9, 2021

Okay. This should be it.

One missing step is creating the database on the first run. I will tackle this in a follow-up because this is already too big.

The workaround is basically sqlite3 $HOME/.ssb-go-room/roomdb < $src/admindb/sqlite/schema-v1.sql. Also added it to the readme

@cryptix cryptix merged commit 734ae30 into master Feb 9, 2021
@cryptix cryptix deleted the web-skeleton branch February 9, 2021 14:50
boreq added a commit to boreq/go-ssb-room that referenced this pull request Nov 2, 2022
Add a possibility to use a magic token instead of real invites. To set the token use the `bypass-invites-token` flag. All invites which use this token will succeed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants