Skip to content

Navid107/aiphotogenerator-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AiPhotoGenerator by AI Dale-E

AI DALL-E is an advanced artificial intelligence model developed by OpenAI that generates highly detailed and realistic images from natural language descriptions. It has potential applications in design, art, and entertainment.

A fully functional project written in Node.js showing how to create a REST API

This is a simple Create/Post application where every part of this project is sample code which shows how to do the following:

  • Create a custom web server with Node.JS using HTTPRouter
  • Create a Mongoose DataBase which saves the data in cloud
  • Create a Cloudinary
  • Create a front end with React
  • Create a Tailwind UI

Tech

This project uses a number of open source projects to work properly:

  • React - HTML enhanced for web apps!
  • Tailwind - an open source CSS framework
  • OpenAi - Artificial intelligence Bot
  • Cloudinary - Cloudinary is a software solution based on Software-as-a-Service (SaaS)
  • Vite - Markdown parser done right. Fast and easy to extend.
  • node.js - evented I/O for the backend
  • Express - fast node.js network app framework
  • Mongoose - Cloud Database

BackEnd Installation

Install the dependencies and devDependencies and start the server.

cd server 
npm i

For production environments...

Create .env file in server folder and add these valiables in it
OPENAI_API_KEY=
ChatGPT openai api
MONGODB_URL=
Add your local or cloud based Database
CLOUDINARY_CLOUD_NAME=
Add your Cloudinary name
CLOUDINARY_API_KEY=
Add your Cloudinary API key
CLOUDINARY_API_SECRET=
Add your Cloudinary API secret  
cd client  
npm i

BackEnd

Running the development server.

    npm nodemon

Building for production.

    npm run build

Running the production server.

    npm run start

FrontEnd

Running the development server.

    npm run dev

Building for production.

    npm run build

Running the production server.

    npm run start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published