Skip to content

Efficient Node.js backend for Space Explorer Project with OpenAI GPT-4 integration, image processing, and user account management. Features real-time updates on space events and Firebase-powered scheduled database upkeep.

Notifications You must be signed in to change notification settings

TheodoreRed/Space-Explorer-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backend Project

Overview

This backend project is a robust and scalable server-side application utilizing Node.js, Express, MongoDB, and Firebase. It is designed to handle various backend functionalities including user account management, image processing, and integration with OpenAI's GPT-4 API for text generation. Scheduled tasks for database updates are also implemented, ensuring up-to-date information on space events, astronauts, and spacecrafts.

Features

  • User Account Management: Create, read, update, delete, and manage user accounts, comments, and replies.
  • Image Processing: Download and process images using Axios.
  • OpenAI GPT-4 Integration: Generate and process text using OpenAI's GPT-4 model.
  • Scheduled Database Updates: Automated updates to MongoDB collections with space events, astronaut details, and spacecraft information.
  • Firebase Functions: Utilize Firebase for cloud functions and deployment.
  • Space Development Information: Fetch and manage data related to space events, astronauts, and spacecrafts.

Prerequisites

  • Node.js (v18)
  • MongoDB
  • Firebase CLI
  • TypeScript

Installation

  1. Clone the repository.
  2. Install dependencies: npm install
  3. Set up your Firebase project and configure the Firebase CLI.
  4. Configure your .env file with necessary environment variables (e.g., OPENAI_API_KEY).

Running the Project

  • Development Mode: npm run serve:dev
  • Production Mode: npm run start

API Endpoints

  • User Accounts: CRUD operations, toggle articles and images, manage comments and replies.
  • Image Processing: Endpoint for image download and processing.
  • OpenAI Integration: Generate text using the OpenAI API.
  • Space Devs Info: Fetch and manage data related to space events, astronauts, and spacecrafts.

Scheduled Functions

The project includes scheduled functions to update the database with the latest space events, astronaut details, and spacecraft information using Firebase scheduled functions.

Deployment

Deploy the functions to Firebase using: npm run deploy

Contributing

Contributions to improve the project are welcome. Please follow the standard pull request process for your contributions.


About

Efficient Node.js backend for Space Explorer Project with OpenAI GPT-4 integration, image processing, and user account management. Features real-time updates on space events and Firebase-powered scheduled database upkeep.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published