FULL STACK DJANGO AND REACT get hands-on experience in full-stack web development with Python, React, and AWS /
Build professional, cloud-ready web applications from frontend to backend using the latest features of Django and React Key Features Explore the advanced features of - popular frameworks like Django and React by working on hands-on projects Launch your career as a full-stack Python web developer wit...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham, UK :
Packt Publishing Ltd.,
2023.
|
Edición: | 1st edition. |
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- Intro
- Preface
- Cover
- Part 1: Technical Background
- Chapter 1: Creating a Django Project
- An overview of software development
- Understanding backend development
- Responsibilities of backend developers
- What is an API?
- Understanding REST APIs
- What is Django?
- Setting up the work environment
- Creating a virtual environment
- Installing Django
- Creating a sample project
- Configuring the database
- Postgres configuration
- Connecting the database
- Installing an HTTP request client
- Summary
- Questions
- Chapter 2: Authentication and Authorization using JWTs
- Technical requirements
- Understanding JWTs
- Understanding how JWTs are used in authentication
- Organizing a project
- Creating a user model
- What are Django models?
- Writing the User model
- Writing UserSerializer
- Writing UserViewset
- Adding a router
- Writing the user registration feature
- Adding the login feature
- Refresh logic
- Summary
- Questions
- Chapter 3: Social Media Post Management
- Technical requirements
- Creating the Post model
- Designing the Post model
- Abstraction
- Writing the AbstractSerializer
- Writing the AbstractViewSet
- Writing the Post model
- Writing the Post serializer
- Writing Post viewsets
- Adding the Post route
- Rewriting the Post serialized object
- Adding permissions
- Deleting and updating posts
- Adding the Like feature
- Adding the posts_liked field to the User model
- Adding the like, remove_like, and has_liked methods
- Adding the likes_count and has_liked fields to PostSerializer
- Adding like and dislike actions to PostViewSet
- Summary
- Questions
- Chapter 4: Adding Comments to Social Media Posts
- Technical requirements
- Writing the Comment model
- Adding the Comment model
- Creating a comment in the Django shell
- Writing the comment serializer
- Nesting routes for the comment resource
- Creating nested routes
- Writing the CommentViewSet class
- Testing the comments feature with Insomnia
- Updating a comment
- Deleting a comment
- Summary
- Questions
- Chapter 5: Testing the REST API
- Technical requirements
- What is testing?
- What is software testing?
- Why is software testing important?
- What are the various types of testing?
- Understanding manual testing
- Understanding automated testing
- Testing in Django
- The testing pyramid
- Configuring the testing environment
- Writing your first test
- Writing tests for Django models
- Writing tests for the User model
- Writing tests for the Post model
- Writing tests for the Comment model
- Writing tests for your Django viewsets
- Writing tests for authentication
- Writing tests for PostViewSet
- Writing tests for CommentViewSet
- Writing tests for the UserViewSet class
- Summary
- Questions
- Part 2: Building a Reactive UI with React
- Chapter 6: Creating a Project with React