Jupiter Uranus Mars Earth

AI
Prompts

A Collection of Architectural AI Prompts

Back

These are various prompts that I executed using Claude-AI. Unlike the previous page, the output of these prompts is not something I can display easily on the web. These are mostly architectural code that is generated as a set of files in a project or server configuration files or step-by-step instructions on how to configure something. Feel free to run these commands yourself using Claude-AI. Keep in mind, that running these prompts two times back-to-back will not produce the exact same results. I have found that running them again often produces slightly more details or steps than the previous execution, without rewording it or changing the prompt in any way.

Prompt Description

Wire up a django app that allows for image uploads on an Ubuntu server via the media folder. Images will be uploaded to Ubuntu and not a third-party storage such as AWS S3 Buckets. Instruct what the necessary settings.py adjustments should be. Assume I already have a Django project and I just need to add this image app to my project. Generate an example page with URL pattern, and view class wired up. Assume that I will be using an image slider/carousel JavaScript gallery such as https://iosscripts.com/iosslider/ which I will configure myself. On the backend, make sure there is a Django Admin panel for managing the images, such as upload them, delete them and edit field data related to an image model. On the image mode include field data such as title, sub-title, description, date and location, these fields do not need to be required fields. Allow for single and bulk image uploads. On bulk image upload, the user does not need to include the image field data. When uploaded, make sure the images are automatically optimized for the web. Such as, if a large dimension image is uploaded, resize them to a maximum dimension of 1200px wide and compress the image to reduce the file size to allow for better page loads. Ensure that filenames when uploaded do not include spaces or disruptive special characters, adopt a naming convention that will rename the files when uploaded that is unique from previously uploaded images. Use any standard Django packages necessary to perform these tasks and provide any necessary installation steps and settings.

Getting a barebone structure for an image upload app.

Please guide me through the steps to configure NGINX and GUNICORN for an Ubuntu 24 server that has multiple Django projects with PostgreSQL databases. The PostgreSQL databases are already configured and installed and the Django projects already exist. Each Django project lives in a separate folder in the /var/www/ directory. Each Django project is a sub domain of www.example-site.com where the main site www. is a non Django project with an index.html file. Also, each main site and sub domain will be https but I will get the certs for those on my own.

Realizing my server needed more complex configuration steps, I needed to request new parameters stating that each sub-domain would be a separate Django project or other framework, that would then need it's own configuration files that I could add to later as I work on each project.

Please guide me through the steps to configure NGINX and GUNICORN for an Ubuntu 24 server that has multiple Django projects with PostgreSQL databases. The PostgreSQL databases are already configured and installed and the Django projects already exist. Each Django project lives in a separate folder in the /var/www/ directory. Each Django project is a sub domain of www.example-site.com where the main site www. is a non Django project with an index.html file. Also, each main site and sub domain will be https but I will get the certs for those on my own. The manage.py file and the wsgi.py file live in the root of the project in /var/www/app1/ directory.

Attempting to configure an Ubuntu Server to host a Django Project.

Create a docker file for running in docker desktop on windows 3 containers/services for Ubuntu 24.04.3 LTS with Python 3.12.3 and postgresql 16.11 installed and sudo and nano packages installed. Use the bare minimum package dependencies required to build these containers as quickly as possible. Assume this will be a Django project and include command to runserver and expose all necessary ports for running on localhost. When building for the first time install requirements.txt file that lives in the app folder. Make postgres, web and migrations the three separate service containers. On migrations container run makemigrations and migrate commands. Configure postgresql to run on port 5433 and also configure it to easily let me connect pgadmin on windows to my docker containers postgresql database.

I was having issues connecting to pgAdmin, as I sometimes do even in a work setting. I needed to request instructions to help me quickly resolve these issues. This one also introduces the use of a requirements.txt file.

Create a docker file for running in docker desktop on windows a container(s) for Ubuntu 24.04.3 LTS with Python 3.12.3 and postgresql 16.11 installed and sudo, nano, django and djangorestframework packages installed. Use the bare minimum package dependencies required to build these containers as quickly as possible. Make postgres, web and migrations a separate service. Configure postgresql to run on port 5433 and also configure it to easily let me connect pgadmin on windows to my docker containers postgresql database.

I had already been using port 5432 on WSL for my current stuff on Windows. Without disrupting my other projects, I needed to build the containers in a way where I could work with an alternative port on Windows.

Create a docker file for running in docker desktop on windows a container(s) for Ubuntu 24.04.3 LTS with Python 3.12.3 and postgresql 16.11 installed and sudo, nano, django and djangorestframework packages installed. Use the bare minimum package dependencies required to build these containers as quickly as possible. Make postgres, web and migrations a separate service.

Realizing that everything was jammed into one single container. In a practical real-world scenario, I would need to break down components into separate services that could then be siphoned off into AWS services or whatnot.

Create a docker file for running in docker desktop on windows a container(s) for Ubuntu 24.04.3 LTS with Python 3.12.3 and postgresql 16.11 installed. Use the bare minimum package dependencies required to build these containers as quickly as possible.

Realizing that the first execution stuffed a lot of garbage into the container that made building for the first time take a tremendously long time and would not be practical for a large team of developers. I needed it to trim the fat.

Create a docker file for running in docker desktop on windows a container(s) for Ubuntu 24.04.3 LTS with Python 3.12.3 and postgresql 16.11 installed.

First attempt to generate a Docker configuration script for a Django project.