Clone with
git clone git://git.awl.red/neallred/allredlib
allredlib📎
Allredlib
local dev📎
Reset DB📎
migrate migrate-down --files /allredlib/migrations --connection '/.allredlib.db' migrate migrate-up --files /allredlib/migrations --connection '/.allredlib.db'
UPDATE schema_migrations set dirty=false;
Run application server📎
pushd webapp
bun i
bun run build-static
popd
go run cmd/server/main.go cmd/server/static.go
Create user📎
curl -X POST -d '{"username": "nn", "password": "password"}' http://localhost:8080/api/v1/user/signup curl -X POST -d '{"username": "nn", "password": "password"}' http://localhost:8080/api/v1/user/login curl --cookie "$ALLREDLIB_COOKIE" http://localhost:8080/api/v1/user/whoami
Promote user to admin (assuming roles are the same as in the migrations)📎
sqlite3 ~/.allredlib.db "INSERT INTO users_role (users_id, role_id, grantor_id) VALUES (1, (SELECT id FROM role WHERE role='SERVER_ADMIN'), 1);"
Create a GUI admin through the application server📎
TBD
Update graphql schema📎
go run github.com/99designs/gqlgen generate
.gitignore
2 years ago
README.md
2 years ago
dev-seed.sql
2 years ago
go.mod
2 years ago
go.sum
2 years ago
gqlgen.yml
2 years ago
generated.go
2 years ago
queries.go
2 years ago
resolver.go
2 years ago
schema.graphqls
2 years ago
schema.resolvers.go
2 years ago
str.go
2 years ago
logging.go
2 years ago
0001_add_creator_table.down.sql
2 years ago
0001_add_creator_table.up.sql
2 years ago
0002_add_series_table.down.sql
2 years ago
0002_add_series_table.up.sql
2 years ago
0003_add_attributions_table.down.sql
2 years ago
0003_add_attributions_table.up.sql
2 years ago
0004_add_subseries_table.down.sql
2 years ago
0004_add_subseries_table.up.sql
2 years ago
0005_add_subseries_attribution_table.down.sql
2 years ago
0005_add_subseries_attribution_table.up.sql
2 years ago
0006_add_title_table.down.sql
2 years ago
0006_add_title_table.up.sql
2 years ago
0007_add_genre_table.down.sql
2 years ago
0007_add_genre_table.up.sql
2 years ago
0008_add_creator_title_table.down.sql
2 years ago
0008_add_creator_title_table.up.sql
2 years ago
0009_add_user_system.down.sql
2 years ago
0009_add_user_system.up.sql
2 years ago
tools.go
2 years ago
.gitignore
2 years ago
README.md
2 years ago
bun.lockb
2 years ago
index.html
2 years ago
package.json
2 years ago
favicon.ico
2 years ago
app.tsx
2 years ago
change_session.tsx
2 years ago
genres.ts
2 years ago
index.css
2 years ago
index.tsx
2 years ago
about.tsx
2 years ago
book_details.tsx
2 years ago
book_new.tsx
2 years ago
books.tsx
2 years ago
creator_details.tsx
2 years ago
creator_new.tsx
2 years ago
creators.tsx
2 years ago
genres_new.tsx
2 years ago
home.tsx
2 years ago
login.tsx
2 years ago
series_new.tsx
2 years ago
signup.tsx
2 years ago
roles.ts
2 years ago
routes.ts
2 years ago
select_many.tsx
2 years ago
user_info.tsx
2 years ago
tsconfig.json
2 years ago
vite.config.ts
2 years ago