How to dynamically update prices for menu website? [closed] - javascript

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 months ago.
Improve this question
I would like to publish a website that hosts menus for different restaurant branches.
What would be good way to do publish this?
Bearing in mind occasional price changes - does this mean taking the website down and re-deploying or is there a way I can dynamically update item prices?
Hosting providers/CMS tools appreciated
I have written the website using basic html/css/js so far.. I have only used django to host a website on the local loopback address. I am determined to learn more.

The first question would be can you access the price data online? (Other websites?)
If you are able, to get the data online then you could create a database and small program which fetches the required data for the website. You can then give that a refreshing rate of 5 min or what ever you like.
Then give your website to access the database and load the prices/data from the database into your website.
If you do not have the data online you can still use a database for storing the prices and other data. If you store the data in database you can load it from the database into your website.
To update the data you can either insert the values directly into the database or you can write an webinterface. (Do not forget to restrict the access to the webinterface)
For the communication I would recommend to use CRUD methods ( Create Read Update Delete) https://en.wikipedia.org/wiki/Create,_read,_update_and_delete

Related

Displaying spreadsheet data as plain text in HTML? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 days ago.
Improve this question
I was asked to rework our canteen's website to be more user-friendly to operate for the chef and other staff, who are unfamiliar with coding and content management systems. More specifically, we have a menu page where the meals for the next 3 weeks are displayed, and I was asked to make it easier to update said page.
I figured that the simplest approach would be to create a spreadsheet in Google Sheets or Excel and to pull the data - so the names of meals and some dates - into the HTML page from there, so that whenever the staff needs to update the information, they can just edit the spreadsheet instead of bothering with the backend of the website.
My first approach was to try and connect the HTML to a Google Sheet using Google Apps Script, but this proved difficult since I don't actually know any JavaScript and expected the whole ordeal to be simpler.
I tried following some tutorials I found online, but they a) were mostly for extracting entire tables, not just singular pieces of data and b) they didn't work. I thought about using an actual database program in the hopes that would help, but I don't have access to Microsoft Access at the moment.

Mern app where i have to save profile pictures of users [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 months ago.
Improve this question
Im creating a mern app where i have to save profile pictures of users.
My question has 3 parts:
1)What is the best file hosting service (image hosting) to save images in database how to configure it with mern.Im using mongodb.
2)We are planning to deploy the app on aws server later. Should i save it on aws.If yes how(Procedure) and how much it will cost as we are on tight budget right now and not planning to deploy for atleast 5 months.
3)Is there any other cost efficient way ,if yes kindly share it with procedure as im new to web programming.
Images are usually not persisted in a database itself, due to their large size once system gets bigger, but on file system (you can save them into local folder for development purposes, and on AWS for production purposes, for instance). In the database you can keep image data like image file system path, size in pixels etc.

How to store data for website book gallery [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I'm trying to make a website where a user can look through an image gallery of books, each accompanied by the book's name and other properties, such as reading level, number of pages, etc.
I'd be using my own images of the books and entering the data for them myself, but I'm not sure how to store these book objects. I obviously don't want to manually make a <div> for each and enter all the data, but rather use JS to access the list of all the books and their data and output them.
I'm not sure what would be the appropriate method of storing these books. Would I make a SQL database, use localStorage, or something else entirely?
I am sure you do not want memory and performance to be a concern when you design something.
Refer this to know more about localstorage limitations.
I would suggest you go with a database and store it there, will be a scalable option as well. I am assuming you have a crud operation also involved in your website.

Show rows in javascript [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I have to display more than 50k rows with data. Using pure angularjs main problem will be speed and data caching. Can you advise a library or direction that is solution to my problem?
Do not "ever" display so many items at once to a user.
If you find your self in a need to display so much information, something is wrong with the way you have thought about how your users will interact with the application.
A couple of things to look into should be :
Paging the data ( filters & pages, much like any e-shop for example )
Use the correct HTTP response headers to allow browsers to cache requests, on the other hand you can even try to cache queries on the server, instead of hitting the database every with every request
Now caching data is a trade off between "data time updates & performance across the platform". Some times the data must be "live" so you can not really add any caching logic, but most of the times you can get away with "x minutes old data", 2,3,5 minutes, depending on what you want to achieve, that will greatly improve performance for the platform, both for the users experience, as well as for the system's stability

Easiest way to go about writing basic data back to a server database [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am totally new to writing back data to a server, so this question may be phrased slightly wrongly.
I am building a website that will have multiple fields for users to input values. I am planning on using JS (probably with Jquery) to pass these values to be stored on some kind of database. I would then like to recall the values and display them back into the site (again using JS).
Ill have to make some calculations based on all the values within the database and would like the end result of these calculations to also be called back onto the website through JS.
Basically i dont even know where to start.. everything i read about this topic seems to be aimed at someone who already knows how to initially set up a database and what kind to use. My scripting is rather on the basic side, so something fairly intuative from the database would be really handy.
Does anyone have any suggestions what sort of database i should set up and how i can begin learning this?
Take a look at https://www.codecademy.com
It's free and they have easy to follow courses that will teach you all the technologies you'll need to know to build an interactive web application.
You should check out php (server language) and mysql (database). You should install wamp if you are on a windows server, or mamp for mac. Play around with php and then create your database and play with that. In mysql there is a new interface called PDO for database connection and database requests, you might wanna look into that. Google is your friend and read a lot and try stuff, that is how you learn it. you might also wanna consider taking online classes.

Categories

Resources