https://github.com/andreasfertig/cppinsights-web
C++ Insights Web front-end. See https://cppinsights.io
https://github.com/andreasfertig/cppinsights-web
Last synced: 6 months ago
JSON representation
C++ Insights Web front-end. See https://cppinsights.io
- Host: GitHub
- URL: https://github.com/andreasfertig/cppinsights-web
- Owner: andreasfertig
- License: mit
- Created: 2018-04-29T16:17:19.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-06-28T08:17:10.000Z (over 1 year ago)
- Last Synced: 2024-06-28T09:37:32.850Z (over 1 year ago)
- Language: JavaScript
- Size: 467 KB
- Stars: 27
- Watchers: 4
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# C++ Insights - Web Front-End
[](https://opensource.org/licenses/MIT)
[](https://github.com/andreasfertig/cppinsights-web/releases)
[](https://github.com/andreasfertig/cppinsights-web/actions/)
[](https://codecov.io/gh/andreasfertig/cppinsights-web)
[](https://cppinsights.io)
[cppinsights.io](https://cppinsights.io/) is the web front-end of C++ Insights.
```
pip3 install --user virtualenv
python3 -m virtualenv env
source env/bin/activate
pip3 install -r requirements.txt
python3 -m pytest test.py
pytest test.py --cov=app
pytest test.py --cov=app --cov-report=html
```
## Short Links
There is now a short-link option. Via the usual way to obtain a link there is now a
'Request Short-Link' button. This requests a new short link from the back-end.
Short links in C++ Insights capture the currently selected options and the code entered. They do not preserve the
C++ Insights version used at the time of creation. This implies that the resulting transformation can change over time.
What a user gets back is a part of a SHA1 hash from all the captured values. This is also stored in the database and
used during lookup to prevent having the same code multiple times in the database.
For future use, the link creation time is also stored.
Please be advised to not store any confidential data in a short-link! You have no guarantees that at some point I will
not loose the database (security breach, misshapening...).
The primary use for short-links should be easy sharing (twitter, stack overflow, etc.). There are some cases of large code samples which do not work
with long links. This is a secondary issue addressed by short-links.
## Other logos
[Compiler Explorer](https://raw.githubusercontent.com/mattgodbolt/compiler-explorer-image/master/logo/icon/CompilerExplorer%20Logo%20Icon%20SVG.svg)
[QuickBench](https://github.com/FredTingaud/quick-bench-front-end/blob/master/public/ico/favicon-32x32.png), SVG version
from [here](https://github.com/mattgodbolt/compiler-explorer/blob/master/views/resources/quickbench.svg)