WebClub-NITK / WebClub-NITK/Hacktoberfest-2k21

Post form from React frontend to Django Restful API

Open
#3 6 comments 0 reactions 1 assignee Claimed by @khannakshat7 View on GitHub
Development Hacktoberfest intermediate
Dominant language
Jupyter Notebook
Stars
1
Forks
7
PR merge metrics
No merged PRs in 30d

Description

### Description
The given code is a simple full-stack application that uses a React frontend to connect to a Django Restful API. One of the React.js files is incomplete. Currently, users cannot post the form data to the backend. Add this functionality to the React frontend.

### Details
- Technical Specifications: All setup details are given in the README.md file. Use Axios to interact with the API.
- Type of issue: Single
- Time Limit: Two days after being assigned the issue.

### Issue requirements / progress
- Complete the `handleSubmit()` function in `frontend/src/components/leadFormContainerView.jsx`

### Resources
- [Django Rest Framework](https://www.django-rest-framework.org/)
- [React](https://reactjs.org/tutorial/tutorial.html)
- [Axios Tutorial](https://www.youtube.com/watch?v=6LyagkoRWYA)

### Directory Structure
- backend has the code for the Django Restful API
- frontend is where the React.js frontend is implemented.

#### Note
1. After the specified setup, you will need to modify only `frontend/src/components/leadFormContainerView.jsx`. Do not modify any other files.
2. Please claim the issue first by commenting here before starting to work on it.
3. Once you are done with the task and have created a Pull Request, please tag @AnirudhAchal to request a review.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.