Skip to content

A full-stack text-to-image AI art generator social app

Notifications You must be signed in to change notification settings

keithhetrick/Pixel-Space

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 

Repository files navigation

Pixel Space

This is a full stack application that uses the Dall-E API to generate images from text prompts. The application is built using React, Node, Express, and MongoDB. Images are stored in Cloudinary (a cloud-based image and video management service), and the generated image-urls are stored in a MongoDB database, for easy access & sharability. Swipeabity is implemented on the Image page using the React-Swipeable package, and the app is deployed on AWS EC2.

Pixel Space

Pixel Space built with:

Installation

  1. Clone the repo
git clone
  1. Install NPM packages on both the client and server
npm install
  1. Create a .env file in the server directory and add the following:
PORT=8000 || <your_port_number>
MONGODB_URL=<your_mongoDB_uri> => can be created via MongoDB Atlas
NODE_ENV=<development> || <production>
ACCESS_TOKEN_SECRET=<your_access_token_secret> => can be generated inside Node shell via the following command: require('crypto').randomBytes(64).toString('hex')
REFRESH_TOKEN_SECRET=<your_refresh_token_secret> => use the same command as above, and paste the new result into the .env file
CLOUDINARY_NAME=your_cloudinary_name
CLOUDINARY_API_KEY=your_cloudinary_api_key
CLOUDINARY_API_SECRET=your_cloudinary_api_secret
CLIENT_ID=your_google_client_id
CLIENT_SECRET=your_google_client_secret
  1. Run the app on both the client and server
npm run start => client
nodemon server => server

Usage

  1. Enter a text prompt in the input field
  2. Click the "Generate Image" button
  3. Click the "Save Image" button to save the image to your computer
  4. Click the "Share Image" button to share the image on social media

Releases

No releases published

Packages

No packages published

Languages