<commit_before># Simple Codesandbox Example

This example shows how to use the Prisma client in a **Codesandbox container** to read and write data in a database.

## How to use

### 1. Create a new Codesandbox bu importing a GitHub repository and point it to this folder.

Clone the repository:

```
git clone <EMAIL>:prisma/photonjs.git
```

Install Node dependencies:

```
cd examples/typescript/script
npm install
```

### 2. Install the Prisma CLI

To run the example, you need the Prisma CLI. Please install it via NPM. 

```
npm install -g prisma2
```

### 3. Set up database & deploy Prisma schema

```
prisma2 lift save --name 'init'
prisma2 lift up
prisma2 generate
```



### 4. Run the script

Execute the script with this command: 

```
npm run start
```

## Next steps

- [Use Prisma with an existing database](https://github.com/prisma/prisma2-docs/blob/master/introspection.md)
- [Explore the Photon API](https://github.com/prisma/prisma2-docs/blob/master/photon/api.md)<commit_msg>Update README for codesandbox example<commit_after># Simple Codesandbox Example

This example shows how to use the Prisma client in a **Codesandbox container** to read and write data in a database.

## How to use

### 1. Create a new Codesandbox by importing a GitHub repository and point it to this folder.

### 2. Codesandbox automatically runs the `start` script

### 3. To iterate quickly, open a new Terminal tab in Codesandbox and start Prisma in Dev mode

```
npx prisma2 dev
```

## Next steps

- [Use Prisma with an existing database](https://github.com/prisma/prisma2-docs/blob/master/introspection.md)
- [Explore the Photon API](https://github.com/prisma/prisma2-docs/blob/master/photon/api.md)
{'fraction_non_alphanumeric': 0.10575793184488837, 'fraction_numerical': 0.009400705052878966, 'mean_word_length': 4.145015105740181, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2545486', 'n_tokens_mistral': 582, 'n_tokens_neox': 522, 'n_words': 208}