flapjackstan / clicks_and_cookies

Django App - Tracks Clicks and Cookies
MIT License
1 stars 0 forks source link

Decouple backend from front end #12

Closed flapjackstan closed 1 year ago

flapjackstan commented 1 year ago

It seems the route that were going with this project is to use the REST framework rather than the django MTV model. Our code should reflect something similar to this, where the front end is standalone project and the backend is a stand alone project.

image source

this also falls in line with a video i saw here as well that emphasized having separate servers and separate project structures. If this is the case we will have to organize what REST api will provide for the front end. Although this is a bit more difficult than initially though, this probably is the best route in the long run.

@jhdz85 - since both apps (front end and back end) need a server, I think nginx is what ive seen to be a production server commonly used.

nginx and react tutorial