https://github.com/sergeichestakov/snapcode
Take a picture of code and run it
https://github.com/sergeichestakov/snapcode
Last synced: 8 months ago
JSON representation
Take a picture of code and run it
- Host: GitHub
- URL: https://github.com/sergeichestakov/snapcode
- Owner: sergeichestakov
- License: mit
- Created: 2020-08-02T00:38:02.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-05T09:10:13.000Z (over 2 years ago)
- Last Synced: 2025-02-27T12:46:43.489Z (9 months ago)
- Language: TypeScript
- Homepage: https://twitter.com/SergeiChestakov/status/1289726580210561025?s=20
- Size: 1.4 MB
- Stars: 164
- Watchers: 10
- Forks: 8
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- hub - snapcode
README
# snapcode
### About
Expo app that allows you to take a picture of handwritten code and execute it on [Repl.it](https://repl.it). Watch the demo [here](https://twitter.com/SergeiChestakov/status/1289726580210561025?s=20).
Logo credit: [@Vandesm14](https://twitter.com/Vandesm14).
### Setup
1. Get a [Google Cloud Vision API Key](https://cloud.google.com/vision/docs/before-you-begin).
2. Get a [Repl.it API Key](https://devs.turbio.repl.co/).
3. Create a `.env` file with the following fields:
```bash
GOOGLE_CLOUD_VISION_API_KEY='${YOUR_KEY_HERE}'
REPLIT_API_KEY='${YOUR_KEY_HERE}'
```
4. Make sure you have `expo-cli` installed. If you don't you can install it via:
```bash
npm install -g expo-cli
```
5. From there you can just:
```bash
# Install dependencies
yarn install
# Run the app
expo start
```