# How to run weaviaate

**URL:** <https://forum.weaviate.io/t/how-to-run-weaviaate/533>\
**Category:** General\
**Created:** [August 14, 2023, 12:21pm UTC](https://forum.weaviate.io/t/how-to-run-weaviaate/533 "2023-08-14T12:21:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![starskiin3d](https://avatars.discourse-cdn.com/v4/letter/s/ed8c4c/32.png) [@starskiin3d](https://forum.weaviate.io/u/starskiin3d)\
**Post date:** [August 14, 2023, 12:21pm UTC](https://forum.weaviate.io/t/how-to-run-weaviaate/533/1 "2023-08-14T12:21:33Z")

</div>

I am first time using weaviate and typsecript as well.

I have set all options in embeded client:

```auto
const client: EmbeddedClient = weaviate.client(
  new EmbeddedOptions({
    port: 7878,
    version: '1.18.1',
    env: {
      QUERY_DEFAULTS_LIMIT: 50,
      DEFAULT_VECTORIZER_MODULE: 'text2vec-openai',
    },
  }),
  // weaviate-ts-client ConnectionParams
  {
    scheme: 'http',
    host: '127.0.0.1:7878',
  }
);

```

My question is how do i run the code in ts. I am using visual studio code as editor.

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [August 14, 2023, 4:54pm UTC](https://forum.weaviate.io/t/how-to-run-weaviaate/533/2 "2023-08-14T16:54:13Z")

</div>

hi @starskiin3d ! Welcome to our community 🤗

Here we have a nice example on how to properly run Weaviate Embedded with Typescript:

> <https://github.com/weaviate/typescript-embedded/tree/main/examples/embedded>
>
> //github.com/weaviate/typescript-embedded/tree/main/examples/embedded

considering you have the **package.json, tscofig.js and index.ts** from that repo locally, all of them at the same folder,

Your next step is to run **npm i && tsc** that will install the depencies (for instance, weaviate-ts-embedded) and transform the typescript code in javascript. You can do it by running on that very same folder:

```auto
npm i && tsc

```

after, you will find your **index.js** file under the **dist** folder.

You can now run:

```auto
node dist/index.js

```

Please, be aware:

- [Weaviate Embedded is marked as experimental](https://weaviate.io/developers/weaviate/installation/embedded#overview) as of now.
- [It is currently supported only at Linux and MacOS](https://weaviate.io/developers/weaviate/installation/embedded#operating-systems)

Let me know if this helps, or if you need any further assistance on installing and using Weaviate.

Thanks!

---

<div class="post-metadata">

**Author:** ![starskiin3d](https://avatars.discourse-cdn.com/v4/letter/s/ed8c4c/32.png) [@starskiin3d](https://forum.weaviate.io/u/starskiin3d)\
**Post date:** [August 15, 2023, 11:46am UTC](https://forum.weaviate.io/t/how-to-run-weaviaate/533/3 "2023-08-15T11:46:37Z")

</div>

Thanks a bunch. Will give it a go.
