Automatically create an invoice with customer details from website - javascript

I've just set up a website with much help from this site!
I have customers who buy items (through the PayPal interface that takes care of the credit card payments).
I have made invoices in LaTex, which I edit manually. The next step I want to take, is to learn how to get my website to pass the purchase information into my LaTex document so that the invoice is automatically generated, and automatically send a copy to the customer.
My question is just: what things should I be searching for to look in order to learn about this kind of thing? I don't know where to start. Would it be JavaScript that would do it?

You will probably need a backend language for that like NodeJS, PHP, Java etc.
Where i would start is look at the documentation of LaTex and see if they have API's to hook into to do what you want to do and go from there.
Usually if there are api's available they will come with examples to get you started.

Related

System migration - need advice choosing new platform

I am a spanish speaker I will try my best in English I hope I made myself clear enough.
During many years I have been working on a spreadsheet (google sheets) for a company, to be used as the main database and management system, where you can find customer info, you can see all the purchases made by that client, you can get a list of clients that need to be reached, you can find the prices list for the products, product information, you can use it to input the orders, print every order and track it until delivery and payment, and the order itself also feeds stock, create an order to refill stock,
It is also used to calculate the payment for the salesmen, create statistics and get sales trends, etc. It includes almost everything the client needs, it's pretty cool. Everything created in google sheets. No macros needed so far.
The thing is that now the client needs to make the same system but more friendly to be used for non experienced people (almost none IT knowdledge, I mean, at all!).
I am not sure what platform should I choose to create this system, it will be starting over, but I cannot wait to start working on this new chalenge.
The good thing is that I have now some knowdledge in JS and I am learning also HTML and the tools to develop web pages. Not sure if I can use any of these to work on this project. What do you recommend? Thanks in advance.
This question is fairly vague, but I'll try to recommend something despite that.
Since you said you'll be "starting over", it sounds like you wouldn't necessarily have to use a Google Sheet.
This is a fairly difficult undertaking for someone inexperienced, especially since it's being developed for a client, but I'd recommend:
Use a SQL DB like Postgres to store the data.
Use something like Express to handle requests, and render pages.
Use some basic HTML+CSS+JS to make nice-looking pages.
And just build a web-app.
You could go other routes, (i.e. keep the "DB" in Google Sheets and use the Google Sheets API, and just use HTML+JS+CSS on static pages), so don't take my opinion as the only route

How do I include the number of subscribers I have in my website automatically in Mailchimp?

I am a beginner in using Mailchimp. I really don't know what I am doing in Mailchimp. But I do know HTML, CSS, and Javascript. I have used MailChimp, to track the number of subscribers I have. Now I want to include MailChimp's API to show the number of my subscribers in my website. I just want to show the number of Subscribers. I don't want to show their contact for their own security. Is there any way to show that in my website? Any way at all? Please don't close my question just because it seems stupid (if it is.) because I am new at this stuff and I really don't even know if what I am saying even makes sense to you.
Conclusion= How do I show the number of subscribers in my website from Mailchimp?

Programmatically Create New HTML Page based on Template and User Input

I am working on a project/idea, my use case is for my significant other's blog/craft/recipe website. I want to create a personalized service that uses Firebase to host, and I want people (like my significant other) who have no coding/html/firebase experience to be able to upload new pages when they please (this will be done on the backend with firebase's hosting API, and on the front end with a customized UI and form).
I have most of this worked out, but I have a remaining question that I have been unable to find a direct answer on:
What is the best way to create a new html file, based on a template, just with new information gathered from the above mentioned form?
For instance: Given a recipe website, where each recipe has its own page and route. The form above would, theoretically gather all information needed to name this page, and gather all information needed to add to this page to make it complete.
I would imagine that I would need to have a template html page and copy then add information to it, upload and serve via Firebase API, etc.
Is there a specific templating engine that assists with this already? I am having a hard time trying to extend the existing templating engines that I know about into this use case.
TL;DR - I know this is a long-winded question, but in the end, I am looking for the best, most efficient way to programmatically create a new HTML file that will be based off of a given template, add custom information, and upload/serve via the firebase API - using Node/Google Cloud Functions, of course.
I do NOT need any code written for me, just looking to be pointed in the right direction, as I have been researching this for about a month prior to asking here, and this has been my last resort - I am just frustrated because I know there is a way to do this, but have been unable to find what I need.

About implementing filters on event database website

Good day to you,
I've started my journey with code few weeks ago, currently mastering CSS and slowly proceeding to JS. I understand that the most efficient way to learn is actually through trying to develop your own products.
So I'm going to create website where you can find variety of information about very specific events around the world. Not going into unnecessary details... I need to know what are next skills to acquire to be able to launch such project. The design is such it should be simple landing page with lots of filters such as ticket price, country location, chosen date (based on information in the code or/and connected directly to Facebook events). The user can also choose to geolocate events via interactive map where all options are visible. The purpose is to show the results to user after filtering the rest of the data out. After this user can click on events that match his requirements and proceed to subpages to gather more specific information.
How to manage this? Could this be deployed on vanilla JS/jQuery or I will need to also learn some PHP and create some kind of database? Maybe needed data about the events can be put directly in the lines of code using pure CSS/JS? Also, do you think that launching this one on Wordpress could be helpful taking in mind some helpful plugins or should I build everything from scratch?
Sorry if this question sounds very noobie in style but I'm completely fresh in this and very eager to start project from which I can learn. At the same time need some support about what next language is most critical I need to know to make this happen.
Thanks

How to add a "# users online" feature to Meteor app?

I'm working on a Meteor app and I want to add a feature that would say how many people are on the website at a time, similar to omegle.com where it says "38,000+ online now" or whatever. Is this possible with Meteor? If it is, I have no idea how to execute it, and that's why I'm asking it here. Does anybody know how to do this?
You can use presence package for that purpose, see https://atmospherejs.com/package/presence . It provides the live data on the user state. For example, the easiest way to get the number of online users is:
Presences.find({online: true}).count();

Categories