Add website from web UI #4

Closed
opened 2022-11-09 12:55:31 +05:30 by realaravinth · 4 comments
Owner

Currently, adding website requires modifying configuration file. Not user-friendly. Being able to add a webpage from the web UI or an API will significantly increase user-friendliness.

Currently, adding website requires modifying configuration file. Not user-friendly. Being able to add a webpage from the web UI or an API will significantly increase user-friendliness.
realaravinth self-assigned this 2022-11-09 12:55:32 +05:30
realaravinth added spent time 2022-11-09 12:55:43 +05:30
2 hours
realaravinth started working 2022-11-09 12:55:47 +05:30
realaravinth stopped working 2022-11-09 15:56:52 +05:30
3 hours 1 minute
realaravinth started working 2022-11-09 16:06:57 +05:30
realaravinth stopped working 2022-11-09 16:10:24 +05:30
3 minutes 27 seconds
Author
Owner

Changes live in wip-dashboard branch.

Today work's diff: d9fc1b8533..76692109bc

Summary:

  1. Bootstrap homepage and dashboard homepage
  2. DB operations: create, rm, get for website metadata (data required to deploy a site on Librepages)
  3. Controllers: add and update site.
  4. Path for individual sites are no longer individually specified, instead we accept a base_path in config and use it to construct path for storing webpages. ex: example.com will be stored at {base_path}/example.com
Changes live in [`wip-dashboard`](https://git.batsense.net/LibrePages/librepages/src/branch/wip-dashboard) branch. Today work's diff: https://git.batsense.net/LibrePages/librepages/compare/d9fc1b8533d5521884fef287d73d20758a70dfa4..76692109bcf18b7c642203d94b91a68e6cf5eb32 ## Summary: 1. Bootstrap homepage and dashboard homepage 2. DB operations: create, rm, get for website metadata (data required to deploy a site on Librepages) 3. Controllers: add and update site. 4. Path for individual sites are no longer individually specified, instead we accept a `base_path` in config and use it to construct path for storing webpages. ex: `example.com` will be stored at `{base_path}/example.com`
realaravinth started working 2022-11-10 14:45:36 +05:30
realaravinth added a new dependency 2022-11-10 16:22:09 +05:30
Author
Owner

Changes in the wip-dashboard branch.

Diff: c86ca3467f..926cf3fe08

Summary

  1. rm loading site data from configuration file
  2. Port codebase to use DB as source for site data
  3. controllers for adding and updating sites
  4. Update API to rely on controllers created in 3 above.
  5. Fix DB error code: return WebsiteNotFound for relevant situations
  6. Fix GH CI: add node and sass installation in build env setup.
Changes in the `wip-dashboard` branch. Diff: https://git.batsense.net/LibrePages/librepages/compare/c86ca3467f57f1a1a03ba344177dc07fea85dd3e..926cf3fe0867a8325a6ebf0de5bab2b8d22d137d ## Summary 1. rm loading site data from configuration file 2. Port codebase to use DB as source for site data 3. controllers for adding and updating sites 4. Update API to rely on controllers created in `3` above. 5. Fix DB error code: return WebsiteNotFound for relevant situations 6. Fix GH CI: add node and sass installation in build env setup.
realaravinth stopped working 2022-11-10 16:35:06 +05:30
1 hour 49 minutes
realaravinth started working 2022-11-27 20:50:33 +05:30
realaravinth stopped working 2022-11-27 22:53:08 +05:30
2 hours 2 minutes
Author
Owner

Summary (Nov 27, 2022):

  1. chore: mv deploy and meta API endpoints to src/api/v1 (commit)
  2. chore: use common repo URL, as specified in src/tests.rs (commit)
  3. fix: duplicate home page. Redirect to login page, if user is unauthenticated and redirect to dashboard homepage if user is authenticated (commit)
  4. chore: refactor Event to be deserializ-able (commit)
## Summary (Nov 27, 2022): 1. chore: mv deploy and meta API endpoints to src/api/v1 ([commit](./commit/54c03231056411d69e133e7fb80ebc845cbbc99f)) 2. chore: use common repo URL, as specified in src/tests.rs ([commit](./commit/26fdc1db9f1ae949c76f44cf436129b392cb9d2e)) 3. fix: duplicate home page. Redirect to login page, if user is unauthenticated and redirect to dashboard homepage if user is authenticated ([commit](./commit/8a25459985878c54f4b66c20ca045c51fc2aa0af)) 4. chore: refactor Event to be deserializ-able ([commit](./commit/1015ccbf4d50d0c7f38f62e752dcc8532be74292))
Author
Owner

Summary:

  • Minor bug fixes and cleanup
  • Added public ID (UUID) to deployments
  • Implemented creating deployment from web UI with tests.

Diff: 2d9e952040...bc7153a060

## Summary: - Minor bug fixes and cleanup - Added public ID (UUID) to deployments - Implemented creating deployment from web UI with tests. Diff: https://git.batsense.net/LibrePages/librepages/compare/2d9e952040a5b9c635724c74db62e0d877aea04a...bc7153a060b7b2fc1463253cf91bcb4cdd54c102
realaravinth added spent time 2022-12-03 16:46:16 +05:30
6 hours 30 minutes
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Total Time Spent: 15 hours 26 minutes
realaravinth
15 hours 26 minutes
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Depends on
#5 Generate random subdomains
LibrePages/librepages
Reference: LibrePages/librepages#4
No description provided.