VIDEO DEMO: https://youtu.be/psBENhE4XDA
This web app generates funny pet names for all kinds of animals, making POST requests to the OpenAI API that generates a pet name using Natural Language Processing. It makes additional GET requests to another API (node-server), which makes GET requests to another API (french-translator-server) which takes in the AI generated pet name and translates it to a newly invented language, known as French++.
Rubey - a complicated solution to a simple problem.
-
If you donβt have Python installed, install it from here
-
Clone the user app repository, and navigate to the project directory
$ git clone https://github.com/dannyl1u/pet-name-generator-service.git $ cd pet-name-generator-service
-
Install the requirements
$ pip install -r requirements.txt
-
Make a copy of the example environment variables file
$ cp .env.example .env
-
Add your API key to the newly created
.env
file -
Create a new virtual environment
$ python -m venv venv $ . venv/bin/activate
-
Run the app
$ flask run
You should now be able to access the app at http://localhost:5000
Node Server https://github.com/dannyl1u/node-server
-
Clone the repository
$ git clone https://github.com/dannyl1u/node-api.git
-
Navigate into the project directory
$ cd node-api
-
run npm install
$ npm install
-
Run the server
$ node .
Server should now be up at http://localhost:8080
https://github.com/dannyl1u/french-translator-server
-
Clone the repository and navigate to the directory
$ git clone https://github.com/dannyl1u/french-translator-server.git $ cd french-translator-server
-
Ensure python is installed.
$ python --version
-
Install flask
$ pip install Flask # we might need to replace pip with pip3 # this also requires that pip is installed $ pip --version
-
Run the server
$ python api.py
Server should now be up at http://localhost:8000