Git Product home page Git Product logo

iandai's Introduction

IANDAI - Backend API Service

Overview

IANDAI is a backend service that serves as an API, connecting to a MongoDB database and the ChatGPT API. It provides data to a Next.js frontend. This README provides information on setting up and using the IANDAI backend service.

Installation

Make sure you have Node.js installed on your machine.

  1. Clone the repository:
git clone <repository-url>
  1. Navigate to the project directory:
cd iandai
  1. Install dependencies:
npm install

Configuration

Environment Variables

Create a .env file in the project root and configure the following variables:

# MongoDB Connection String
MONGO_URI=your-mongodb-connection-string

# ChatGPT API Key
OPENAI_API_KEY=your-chatgpt-api-key

# Port for the server
PORT=3000

Project Structure

  • app.js: Entry point for the application.
  • controllers/: Contains controllers handling business logic.
  • routes/: Defines API routes.
  • config/: Configuration files (e.g., database connection).
  • models/: MongoDB schema models.
  • utils/: Utility functions.

Usage

To start the server, run the following command:

npm start

The server will start at the specified port in the .env file (default is 3000).

iandai's People

Contributors

danielsanchezrueda avatar

Watchers

Daniel Sánchez Rueda avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.