Skip to content

myller-silva/chatbot-learning-language

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My App

This project consists of a Flask (Python) backend and a Next.js (TypeScript) frontend, using Tailwind CSS for styling.

Project Structure

chatbot-language-learning/
│
├── backend/         # Flask API
│   ├── app.py
│   ├── requirements.txt
│   ├── Dockerfile
│   ├── docker-compose.yml
│   └── ...
│
├── frontend/        # Next.js Application
│   ├── app/
│   ├── components/
│   ├── lib/
│   ├── public/
│   ├── package.json
│   └── ...
│
└── README.md        # This file

How to Run the Project

Prerequisites

  • Node.js (recommended: 18+)
  • Python 3.11+
  • Docker (optional, to run with containers)

1. Running the Backend (Flask)

Go to the backend folder:

cd backend

Install the dependencies:

pip install -r requirements.txt

Start the Flask server:

python app.py

The backend will be available at http://localhost:5000.

Using Docker

You can run the backend with Docker Compose:

docker-compose up --build

2. Running the Frontend (Next.js)

Go to the frontend folder:

cd frontend

Install the dependencies:

npm install

Start the development server:

npm run dev

The frontend will be available at http://localhost:3000.

Directory Overview

  • backend/: Flask server code, dependencies, and Docker configuration files.
  • frontend/: Next.js code, React components, hooks, utilities, and Tailwind configuration.

Notes

  • Make sure the backend is running before using the frontend if there is integration between them.
  • Adjust the API URLs in the frontend as needed to point to the backend.

Feel free to adapt this README as needed for your project.

Releases

No releases published

Packages

 
 
 

Contributors