<<<<<<< HEAD
49093f7 (Initial project setup from template)
This repository provides a template for creating a web application with a Python backend and a Next.js frontend. The backend is managed using Poetry for dependency management, while the frontend is built with Next.js, offering a modern React-based user interface.
- Python backend with a RESTful API powered by FastAPI
- Next.js frontend for a responsive user interface
- Dependency management with Poetry (More info)
- Easy setup and configuration
Before you begin, ensure you have met the following requirements:
- Python >=3.10,<3.11 - If you are Mac user, you can install Python 3.10.11 using this link.
- Node.js 14 or higher
- Poetry (install via Poetry's official documentation)
Follow these steps to set up the project locally.
- Navigate to the repository template on GitHub and click on Use this template.
- Create a new repository.
- Do not check the "Include all branches" option.
- Define a repository name following the naming convention:
<industry>-<project_name>-<highlighted_feature>. For example,fsi-leafybank-ai-personal-assistant(use hyphens to separate words).- The industry and project name are required; you can be creative with the highlighted feature.
- Provide a clear description for the repository, such as: "A repository template to easily create new demos by following the same structure."
- Set the visibility to Internal.
- Click Create repository.
- Install GitHub Desktop if you haven't already. You can download it from GitHub Desktop's official website.
- Open GitHub Desktop and sign in to your GitHub account.
- Clone the newly created repository:
- Click on File > Clone Repository.
- Select your repository from the list and click Clone.
- Create your first branch:
- In the GitHub Desktop interface, click on the Current Branch dropdown.
- Select New Branch and name it
feature/branch01. - Click Create Branch.
- (Optional) Set your project description and author information in the
pyproject.tomlfile:description = "Your Description" authors = ["Your Name <you@example.com>"]
- Open the project in your preferred IDE (the standard for the team is Visual Studio Code).
- Open the Terminal within Visual Studio Code.
- Ensure you are in the root project directory where the
makefileis located. - Execute the following commands:
- Poetry start
make poetry_start
- Poetry install
make poetry_install
- Verify that the
.venvfolder has been generated within the/backenddirectory.
- Navigate to the
frontendfolder. - Install dependencies by running:
npm install- Start the frontend development server with:
npm run dev- The frontend will now be accessible at http://localhost:3000 by default, providing a user interface.
<<<<<<< HEAD
======= >>>>>>> 0ea7ea5 (Initial commit) >>>>>>> 49093f7 (Initial project setup from template)