loading...
Cover image for Build a Complete Solution With AWS, Django , React , React Native and Heroku - Day 2

Build a Complete Solution With AWS, Django , React , React Native and Heroku - Day 2

nyamador profile image Desmond ・1 min read

Build A "Startup" from scratch (6 Part Series)

1) Build a Complete Solution with Django,React, React Native, AWS, Heroku 2) Build a Complete Solution With AWS, Django , React , React Native and Heroku - Day 2 3 ... 4 3) Build a warehouse management solution with react, django, react-native and AWS. 4) Build a warehouse management solution with react, django, react-native and AWS. 5) Build a complete warehouse management system with React and Django. 6) Build A Complete Solution With Django and React

Today I got the List api endpoints from the django backend working

Root API endpoint = /api/v1

Products = /products/all
Warehouses = /warehouses/all
Customers = /customers/all
Shipments = /shipments/all

To enable My React work with my backend I needed to install django-cors-headers and add localhost:300 to my whitelist.This is as a result of CORS

Cross-origin resource sharing is a mechanism that allows restricted resources on a web page to be requested from another domain outside the domain from which the first resource was served.

The next thing I need to do is to work on all my components in React.

Discussion

markdown guide