Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-docs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Harsh Vardhan Mahawar
swh-docs
Commits
4d3271cf
Commit
4d3271cf
authored
6 years ago
by
Stefano Zacchiroli
Browse files
Options
Downloads
Patches
Plain Diff
getting started: write web app section
Closes T1193
parent
6abc98f6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/getting-started.rst
+30
-1
30 additions, 1 deletion
docs/getting-started.rst
with
30 additions
and
1 deletion
docs/getting-started.rst
+
30
−
1
View file @
4d3271cf
...
...
@@ -210,4 +210,33 @@ next one.
Step 4 --- browse the archive
-----------------------------
**TO BE WRITTEN**
You can now setup a local web app to browse what you have locally archived. The
web app uses the configuration file ``~/.config/swh/webapp/webapp.yml``. Create
it and fill it with something like::
storage:
cls: remote
args:
url: http://localhost:5002
Nothing new here, the configuration just references the local storage server,
which have been used before for repository ingestion.
Before running the web app you need to compile various web assets into a
compact webpack, like this::
cd swh-web
make build-webpack-dev
You can now run the web app, and browse your local archive::
make run-django-webpack-devserver
xdg-open http://localhost:5004
As an initial tour of the web app, try searching for one of the repositories
you have ingested (e.g., entering the ``hylang`` or ``ocaml`` keywords in the
search bar). Clicking on the repository name you will be brought back in time,
and you will be able to browse the source code and development history you have
archived.
Enjoy!
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment