Skip to content

Commit

Permalink
feat: add email writer
Browse files Browse the repository at this point in the history
  • Loading branch information
mxvsh committed Oct 7, 2024
1 parent 90ca77d commit fcc0a6e
Show file tree
Hide file tree
Showing 20 changed files with 557 additions and 520 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,7 @@ Thumbs.db
# Next.js
.next
out

# Envs
.env
.env.*
103 changes: 47 additions & 56 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,81 +1,72 @@
# Zeroai
<h1 align="center">ZeroAI</h1>
<p align="center">
Get your job done with AI in an interactive and easy way.
</p>

<a alt="Nx logo" href="https://nx.dev" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-logo.png" width="45"></a>
<img src="public/zeroai-banner.png"/>

✨ Your new, shiny [Nx workspace](https://nx.dev) is almost ready ✨.
> [!NOTE]
> This project is still under development. You can contribute by adding new tools, fixing bugs, or improving the existing code. Feel free to open an issue or a pull request. 😊
[Learn more about this workspace setup and its capabilities](https://nx.dev/nx-api/next?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects) or run `npx nx graph` to visually explore what was created. Now, let's get you up to speed!
## Table of Contents

## Finish your CI setup
- [About](#about)
- [Available Tools](#available-tools)
- [Running Locally](#running-locally)
- [Adding a new tool](#adding-a-new-tool)
- [Help](#help)

[Click here to finish setting up your workspace!](https://cloud.nx.app/connect/mHUwk31mfo)
## About

## Run tasks
ZeroAI is a collection of AI tools (eg. Email Writer, MCQ generator, YouTube Summarizer, etc.) that helps you get your job done with AI in an interactive and easy way. It is a web application built using Next.js, Tailwind CSS, and AI SDK.

To run the dev server for your app, use:
You can completely run this application on your local machine without any internet connection and use it for free. It supports Ollama and OpenAI API for generating content.

```sh
npx nx dev zeroai
```

To create a production bundle:

```sh
npx nx build zeroai
```

To see all available targets to run for a project, run:

```sh
npx nx show project zeroai
```
## Available Tools

These targets are either [inferred automatically](https://nx.dev/concepts/inferred-tasks?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects) or defined in the `project.json` or `package.json` files.
I am planning to add more tools in the future. Here is the list of tools that are currently available (or planned to be available):

[More about running tasks in the docs &raquo;](https://nx.dev/features/run-tasks?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)
- [x] Email Writer
- [] Code Generator
- [] Grammar Checker
- [] Image Generator
- [] Text Summarizer
- [] MCQ Generator
- [] Question Answering
- [] YouTube Summarizer
- [] Text Translator

## Add new projects
## Running Locally

While you could add new projects to your workspace manually, you might want to leverage [Nx plugins](https://nx.dev/concepts/nx-plugins?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects) and their [code generation](https://nx.dev/features/generate-code?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects) feature.
First, clone the repository:

Use the plugin's generator to create new projects.

To generate a new application, use:

```sh
npx nx g @nx/next:app demo
```bash
git clone [email protected]:mxvsh/zeroai.git
```

To generate a new library, use:
Then, install the dependencies:

```sh
npx nx g @nx/react:lib mylib
```bash
bun install
```

You can use `npx nx list` to get a list of installed plugins. Then, run `npx nx list <plugin-name>` to learn about more specific capabilities of a particular plugin. Alternatively, [install Nx Console](https://nx.dev/getting-started/editor-setup?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects) to browse plugins and generators in your IDE.

[Learn more about Nx plugins &raquo;](https://nx.dev/concepts/nx-plugins?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects) | [Browse the plugin registry &raquo;](https://nx.dev/plugin-registry?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)

[Learn more about Nx on CI](https://nx.dev/ci/intro/ci-with-nx#ready-get-started-with-your-provider?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)
Create a `.env.local` file in the root directory and add the following environment variables:

## Install Nx Console

Nx Console is an editor extension that enriches your developer experience. It lets you run tasks, generate code, and improves code autocompletion in your IDE. It is available for VSCode and IntelliJ.
```bash
PROVIDER=openai
OPENAI_API_KEY=
```

[Install Nx Console &raquo;](https://nx.dev/getting-started/editor-setup?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)
Finally, run the development server:

## Useful links
```bash
bun dev
```

Learn more:
## Adding a new tool

- [Learn more about this workspace setup](https://nx.dev/nx-api/next?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)
- [Learn about Nx on CI](https://nx.dev/ci/intro/ci-with-nx?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)
- [Releasing Packages with Nx release](https://nx.dev/features/manage-releases?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)
- [What are Nx plugins?](https://nx.dev/concepts/nx-plugins?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)
To add a new tool, create a new folder in the `tools` directory with `index.ts`, `page.tsx` and `action.ts`. You can refer to the existing tools for the structure.

And join the Nx community:
## Help

- [Discord](https://go.nx.dev/community)
- [Follow us on X](https://twitter.com/nxdevtools) or [LinkedIn](https://www.linkedin.com/company/nrwl)
- [Our Youtube channel](https://www.youtube.com/@nxdevtools)
- [Our blog](https://nx.dev/blog?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)
If you have any questions or need help, feel free to open an issue or reach out to me on [Twitter](https://twitter.com/monawwarx) or [Telegram](https://t.me/monawwarx). 🙂
File renamed without changes.
Loading

0 comments on commit fcc0a6e

Please sign in to comment.