This is AI Chef! Using Open AI API and Digital Ocean Spaces, this project generates recipes steps and images from any user inputted ingredients!
This server uses the following:
- Node.js: JavaSript runtime for server side projects.
- Express.js: Framework to simplify server side actions.
- nodemon:
- cors:
- Digital Oceans Spaces: Cloud storage without surprises. Spaces is a simple and scalable data storage service.
- Open AI API: gpt-3.5-turbo: AI model for generating natural language and code.
- Open AI API: DALLE: AI model for generating images from natural language.
All files use the .mjs
format to benefit from ES6 import syntax. This works in tandem with "type": "module"
configuration located in package.json
to ensure import syntax works to minimize the amount of imports in the entry file.
This projects main entry file is located at index.mjs
, importing files from 3 key areas:
- middleware
- route
- controller
These directories have their own localized index.mjs
files to centralize and forward respective imports.
- Clone the repository:
git clone <git-repository>
- Run Development Script
npm run start-dev
This script will allow you to run a development server set to http://localhost:3000/ with a default port of 3000. Feel free to change the port at the main entry point index.mjs of the application.