An open API service indexing awesome lists of open source software.

https://github.com/rioredwards/j-scribe

j-scribe provides users with a versatile platform to create, share, and modify code snippets in real-time.
https://github.com/rioredwards/j-scribe

code-editor-online documentation javascript react typescript

Last synced: 2 months ago
JSON representation

j-scribe provides users with a versatile platform to create, share, and modify code snippets in real-time.

Awesome Lists containing this project

README

          

# j-scribe

_Your All-in-One JavaScript_ _**Sandbox**_ _and_ _**Notebook**_ _._

![j-scribe Header](images/j-scribe_header.png)

[Try](https://j-scribe.vercel.app/) • [GitHub](https://github.com/rioredwards/j-scribe)

j-scribe is a versatile platform to create, share, and modify code snippets.

With support for various libraries and frameworks, j-scribe's intuitive user interface and live preview make it easy to see the results of your code as you type.

## Made with

![Typescript](https://img.shields.io/badge/-Typescript-3178C6?logo=TypeScript&logoColor=black&style=for-the-badge) ![JavaScript](https://img.shields.io/badge/-JavaScript-F7DF1E?logo=Javascript&logoColor=black&style=for-the-badge) ![React](https://img.shields.io/badge/-React-61DAFB?logo=React&logoColor=black&style=for-the-badge) ![Redux](https://img.shields.io/badge/-Redux-764ABC?logo=Redux&logoColor=white&style=for-the-badge) ![Node.js](https://img.shields.io/badge/-Node.js-339933?logo=Node.js&logoColor=black&style=for-the-badge) ![Express.js](https://img.shields.io/badge/-Express.js-000000?logo=Express&logoColor=white&style=for-the-badge) ![Bulma](https://img.shields.io/badge/-Bulma-00D1B2?logo=Bulma&logoColor=white&style=for-the-badge) ![Lerna](https://img.shields.io/badge/-Lerna-CF4349?logo=Lerna&logoColor=white&style=for-the-badge) ![esbuild](https://img.shields.io/badge/-esbuild-F8A51C?logo=esbuild&logoColor=black&style=for-the-badge) 

## Features

- **All-in-One Sandbox**: Write, edit, and preview JavaScript and React code snippets without the need for external tools.
- **Real-Time Editing**: See the results of your code immediately with j-scribe's live preview feature, making it easier to debug and visualize your work.
- **Library Support**: Utilize popular libraries and frameworks to enhance your coding experience.
- **Text-Editor**: j-scribe provides a user-friendly way to document code using the built-in Markdown text editor.
- **Sharing and Collaboration**: j-scribe projects are automatically serialized and saved to user's machines, making it possible to store and share projects with others.
- **Command-Line Interface**: j-scribe offers a convenient CLI, available on npm, for opening and creating j-scribe files from the command line.

## Preview

![j-scribe preview](images/j-scribe_preview.gif)

## Usage

1. Install the [CLI](https://www.npmjs.com/package/j-scribe1) by running `npm i j-scribe1`
2. Open the built-in tutorial with `j-scribe1 serve _intro` and follow the instructions to get familiar with the basic features j-scribe offers.
3. Open new or existing notes with `j-scribe1 serve ` (Optionally include a file path: `j-scribe1 serve `).
4. Run `j-scribe1 --help `for additional help

## Lessons learned

- **Best Practices** for designing and building advanced, production-ready apps.
- Integrating **Typescript**, **React**, and **React-Redux** together.
- Designing highly **reusable React components**.
- Creating a **custom plugin for Esbuild** to enable in-browser transpiling/bundling with support for imports from npm.
- Creating a **caching layer** for imported modules/bundled code using **Local-Forage**.
- Using **Redux-Middlewares** for handling complex business logic.
- Taking advantage of powerful **third-party libraries** such as: **bulma**, **immer**, **monaco-editor**, **react-md-editor**, **commander**, etc...
- Safely **handling user input** by utilizing iframes as a code-execution environment- the same technique used by popular sites such as Codepen.
- Utilizing **Lerna** and **nx** to create a **mono-repo** with multiple packages and build targets.
- Creating a **Restful-API** to serve up a **Front-End** application from a **CLI**.
- Utilizing **web-assembly** to go...BLAZINGLY FAST!
- **Deploying** to **npm** and **Vercel**.

## Reflection

**Note**: A large portion of this project was built by following along with a [tutorial series](https://www.udemy.com/course/react-and-typescript-build-a-portfolio-project/) by Stephen Grider on Udemy. I extended and improved upon the original idea.

This was a great learning experience for me! I learned a ton about TypeScript, React, and React-Redux as well as some project-specific libraries such as Monaco-Editor and Resizable. An unexpected challenge I faced was working with Lerna and understanding the build process. This project contains multiple packages, and I had to learn how to configure Lerna to build and deploy the packages in the correct order and for different production environments.

I also learned a lot about the importance of planning and design when building a large-scale application. It's very clear to me how useful OOP principles can be in designing larger apps. Developing each component in a modular way and ensuring that the code is reusable makes it much easier to modify and add more features later on.

I had a lot of fun working on this project, and I'm excited to continue learning and improving my skills. ✅

## Authors

- [Rio Edwards](https://www.github.com/rioredwards)
- [Stephen Grider](https://github.com/StephenGrider)

## Acknowledgements

- [readme.so](https://readme.so/editor)
- [Simple Icons](https://simpleicons.org/?q=redux)
- [shields.io](https://shields.io/)