Skip to content

A simple fullstack web app made with expressJS and reactJS frontend integrating the OpenAI API.

Notifications You must be signed in to change notification settings

mustafa-boorenie/expressedAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

expressedAI

expressedAI is an Express-based server application designed to seamlessly integrate with OpenAI's API, providing an easy interface to interact with AI models for various applications.

Features

  • Easy integration with OpenAI's API.
  • Scalable Express server setup.
  • Customizable endpoint for receiving user queries.
  • JSON response handling for client-server communication.

Installation

To get started with expressedAI, follow these steps:

  1. Clone the repository:
    git clone https://github.com/mustafa-boorenie/expressedAI.git
  2. Navigate to the project directory:
    cd expressedAI
  3. Install dependencies:
    npm install

Usage

To start the server, run the following command in your terminal:

npm start

This will launch the Express server on localhost:3000. The server can be accessed via HTTP client, such as Postman, or through your own frontend setup.

Example

To send a user question to the server:

  1. Use an HTTP POST request to http://localhost:3000/userQuestion.
  2. Include a JSON payload in the request body:
    {
      "userQuestion": "What is the capital of France?"
    }

The server will process the request using the OpenAI model and return the response.

Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Mustafa Boorenie - [email protected]

Project Link: https://github.com/mustafa-boorenie/expressedAI

About

A simple fullstack web app made with expressJS and reactJS frontend integrating the OpenAI API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published