diff --git a/app/.env.base b/app/.env.base new file mode 100644 index 00000000..2cd6dcc6 --- /dev/null +++ b/app/.env.base @@ -0,0 +1,3 @@ +NEXT_PUBLIC_INFERABLE_API_URL="http://localhost:4000" + +NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY= diff --git a/app/README.md b/app/README.md index 6af57e22..ca22da91 100644 --- a/app/README.md +++ b/app/README.md @@ -1,36 +1,49 @@ -This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). +

+ +

-## Getting Started +# Inferable UI -First, run the development server: +[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) +[![Documentation](https://img.shields.io/badge/docs-inferable.ai-brightgreen)](https://docs.inferable.ai/) -```bash -npm run dev -# or -yarn dev -# or -pnpm dev -# or -bun dev -``` +The Inferable Web UI is a user interface for Inferable's control plane. It is open-source and self-hostable. + +Inferable UI + + +### Local Development + +1. Start the control plane: -Open [http://localhost:3001](http://localhost:3001) with your browser to see the result. +To run the UI locally for development, you will need the control plane running. Please see the [Readme](https://github.com/inferablehq/inferable/blob/main/control-plane/README.md) for instructions on how to run the control plane locally. -You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. +2. Populate environment variables: -This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. +Development environment varaiables are managed in the `.env`. -## Learn More +`.env.base` contains a base set of required environment variables. Copy `.env.base` to `.env`. + +```base +cp .env.base .env +``` + +You will need to populate the following environment variables in `.env`: +- `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY` - Inferable relies on [Clerk](https://clerk.com/) for authentication. You can find your publishable key in the Clerk dashboard. + +3. Start the Next.js development server: +```bash +npm run dev +``` -To learn more about Next.js, take a look at the following resources: +## Documentation -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. +- [Inferable documentation](https://docs.inferable.ai/) contains all the information you need to get started with Inferable. -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! +## Support -## Deploy on Vercel +For support or questions, please [create an issue in the repository](https://github.com/inferablehq/inferable/issues). -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. +## Contributing -Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. +Contributions to the Inferable UI are welcome. Please ensure that your code adheres to the existing style and includes appropriate tests. diff --git a/app/assets/sceenshot.png b/app/assets/sceenshot.png new file mode 100644 index 00000000..438dcc1e Binary files /dev/null and b/app/assets/sceenshot.png differ diff --git a/control-plane/README.md b/control-plane/README.md index 800fe8b2..1573e88f 100644 --- a/control-plane/README.md +++ b/control-plane/README.md @@ -89,4 +89,4 @@ For support or questions, please [create an issue in the repository](https://git ## Contributing -Contributions to the Inferable NodeJs Client are welcome. Please ensure that your code adheres to the existing style and includes appropriate tests. +Contributions to the Inferable Control Plane are welcome. Please ensure that your code adheres to the existing style and includes appropriate tests.