https://github.com/hchiam/code-inspiration
https://code-inspiration.surge.sh Capture snippets of code inspiration. Works offline after your 1st visit. Built with Svelte (migrated from React).
https://github.com/hchiam/code-inspiration
cypress offline react redux sapper selenium-webdriver shepherd surge svelte
Last synced: about 2 months ago
JSON representation
https://code-inspiration.surge.sh Capture snippets of code inspiration. Works offline after your 1st visit. Built with Svelte (migrated from React).
- Host: GitHub
- URL: https://github.com/hchiam/code-inspiration
- Owner: hchiam
- License: mit
- Created: 2020-01-27T21:58:42.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-11-20T16:44:12.000Z (6 months ago)
- Last Synced: 2025-03-19T08:03:40.453Z (2 months ago)
- Topics: cypress, offline, react, redux, sapper, selenium-webdriver, shepherd, surge, svelte
- Language: JavaScript
- Homepage:
- Size: 1.35 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [Code Inspiration](https://code-inspiration.surge.sh)
 [](https://travis-ci.org/hchiam/code-inspiration) [](https://opensource.org/licenses/MIT) [](https://www.cypress.io/)
Capture snippets of code inspiration while on the go. It works offline too! (After your first visit.)
## Older demos
(built with [Svelte](https://github.com/hchiam/learning-svelte) and its [Sapper](https://github.com/hchiam/learning-sapper) framework)
and (built with [React](https://github.com/hchiam/learning-reactjs) and `create-react-app`)
You can run PageSpeed tests: [for the Svelte version](https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fcode-inspiration-svelte.surge.sh) and [for the React version](https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fcode-inspiration-react.surge.sh)
## Run locally (note: commands use [`yarn`](https://github.com/hchiam/learning-yarn) instead of `npm`)
Just once:
```bash
git clone https://github.com/hchiam/code-inspiration.git
cd code-inspiration
yarn
```and then:
```bash
yarn dev
```## Test
```bash
yarn test
```## [Dependency graph](https://github.com/hchiam/learning-dependency-cruiser)
[`bash show_dep_graph.sh`](https://github.com/hchiam/code-inspiration/blob/master/show_dep_graph.sh).
### Old: (React version)

### New: (Svelte version)

## Build production version (you can `run` it locally too)
```bash
yarn build
```## Export in prep for static site hosting
```bash
npx sapper export
```## Or just publish to static site hosting in one step
```bash
yarn surge
```⬆️ That will run `npx sapper export; surge __sapper__/export https://code-inspiration.surge.sh; open https://code-inspiration.surge.sh`