Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 24 days 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 (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-11-20T16:44:12.000Z (about 1 month ago)
- Last Synced: 2024-11-20T17:39:24.947Z (about 1 month ago)
- Topics: cypress, offline, react, redux, sapper, selenium-webdriver, shepherd, surge, svelte
- Language: JavaScript
- Homepage:
- Size: 1.3 MB
- Stars: 1
- Watchers: 3
- 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)
![version](https://img.shields.io/github/release/hchiam/code-inspiration?style=for-the-badge) [![Build Status](https://img.shields.io/travis/hchiam/code-inspiration/master?style=for-the-badge)](https://travis-ci.org/hchiam/code-inspiration) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=for-the-badge)](https://opensource.org/licenses/MIT) [![Cypress.io](https://img.shields.io/badge/tested%20with-Cypress-04C38E.svg?style=for-the-badge)](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)
![(Dependency graph.)](https://github.com/hchiam/code-inspiration/blob/react/dependencygraph.svg)
### New: (Svelte version)
![(Dependency graph.)](https://github.com/hchiam/code-inspiration/blob/master/dependencygraph.svg)
## 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`