Answer the question
In order to leave comments, you need to log in
Will my decision be correct for a large project?
We are writing a fairly large project. I suggested using the following solution:
Client (browser)
↑↓ post-, get- requests
example.com (PHP + Laravel) - responsible for validation, data rendering, response to the client
↑↓ curl request
api.example.com (Node.js + Express) - responsible for database queries
↑↓ database query
Database Server (MongoDB)
Answer the question
In order to leave comments, you need to log in
Laravel (like pure PHP) is perfectly able to work with the database.
API is not needed, unnecessary complication.
Client (browser)
↑↓ post-, get-requests
example.com (any PL and framework of your choice) - responsible for validation, queries to the database, rendering data, response to the client
↑↓ request to the
database Database Server (any database on your choice)
basic functionality should be available when js is disabled on the client
You need to prioritize. You obviously have a priority - to connect Vasya at all costs, so what is right or wrong in your case is not a technical question - you need to tag about startups and discuss the interaction and benefits of founders, how to build relationships and all that.
According to the scheme itself, nodejs is really not needed - spend a couple of days reading how to work with the database from laravel - it will be less effort than screwing Vasino's external api there and making it all work fine. Apparently, you have already taken over everything else, so Vasya's usefulness for the project is extremely doubtful.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question