A demo project to showcase usage of vue and node-powered backend service.
vue-js-client-crud
- Frontend code
nodejs-express-mongodb
- Backend code
If you've found this useful and would like to buy the maintainers a coffee (or a Tesla, we're not picky), feel free to do so.
Or by buying products and merchandise at Marketplace.
This funding is used for maintaining the project and adding new features into Code Style plus other open-source repositories.
Front-End
https://eager-galileo-1369f9.netlify.app/
Backend
Do you need it really?
return {
data: data.docs,
meta: {
total: data.totalDocs,
per_page: data.limit,
current_page: data.page,
last_page: data.totalPages,
from: data.page,
to: data.docs.length,
prev_page: data.prevPage,
next_page: data.nextPage,
has_prev_page: data.hasPrevPage,
has_next_page: data.hasNextPage,
},
}
current_page: 1
from: 1
has_next_page: true
has_prev_page: false
last_page: 3
next_page: 2
per_page: 3
prev_page: null
to: 3
total: 7
Read more on the README
inside the node folder
OOP is highly used in the frontend setup. JavaScript classes in the lib
folder are used
to help separate the presentation layer from the logic layer. This makes it damn possible
to swap an entire template/UI and still maintain and reuse your JS objects
with just a snap! - Thanos fans out there
Read more on the README
inside the vue-js-client-crud folder
There is an additional Envoy file for easier deployments to production. Simply provide the username and server URL
envoy run update --user=root --ip=100.100.100.100
Hmm..... let's see
...
Send PR! I'd really appreciate it!
Need help in setting up your own server, website, or just...talk?
Reach me via any of our email.