Frontend criado com Nextjs na versão 14 com API Route e Django 5.0.6
- informações detalhadas sobre instalação no readme do frontend
nextjsdjango/
backend/
├── backend/
│ ├── __init__.py
│ ├── asgi.py
│ ├── settings.py
│ ├── urls.py
│ ├── wsgi.py
│ └── ...
├── contacts/
│ ├── __init__.py
│ ├── admin.py
│ ├── apps.py
│ ├── models.py
│ ├── serializers.py
│ ├── tests.py
│ ├── urls.py
│ └── views.py
├── manage.py
└── ...
landing-page/
├── src/
│ ├── app/
│ │ ├── components/
│ │ │ ├── Header.tsx
│ │ │ ├── Hero.tsx
│ │ │ ├── Items.tsx
│ │ │ ├── CallToAction.tsx
│ │ │ ├── Footer.tsx
│ │ │ └── ContactForm.tsx
│ │ ├── layout.tsx
│ │ ├── globals.css
│ │ └── page.tsx
│ └── next-env.d.ts
├── next.config.mjs
└── tsconfig.json
├── .gitignore
├── README.md
- Frontend (Next.js 14)
- React 18
- TypeScript
- Axios
- React-Modal
- CSS for styling
- Backend (Django)
- Django 5.0.6
- Django Rest Framework
Clone the repository git clone <repository_url> cd landing-page
Navigate to the backend directory
cd backend
Create a virtual environment and activate it
source env/bin/activate # On Windows, use `env\Scripts\activate`
pip install -r requirements.txt
Apply migrations
python manage.py migrate
Run the Django development server
python manage.py runserver
Navigate to the landing-page directory
cd ../landing-page
npm install
Run the Next.js development server
npm run dev