How To Convert Rails Application Into An Actual Site - html

I built a simple todo list application on Rails. I built it through Team Treehouse. It was one of the courses. I am wondering how would I convert it to a site. The reason being is because it would be a nice to add to my portfolio (I have yet to style it though). Would I simply upload the application to my github then go through such as I would to create a website through Github pages?
I plan to buy a url for it. I am just simply trying to gauge out how would I approach converting it into a site. My apologies, it is a noob question.

you can push your code to github and sign in to a heroku account and push it there. There are lot of documentation on how to do that based on your rails application versions. how to put a rails application on heroku or getting started with rails4 and heroku

Create a heroku account. You can rename the domain grocerylist.heroku.com for example. No need to buy a domain.

Related

Delete wordpress on website and replace it with django - Setting up website entirely with django

I own a webpage which has wordpress.org preinstalled.
I have never done anything with it, but now it's about time. As I'm learning django, I would like to build my webpage with it instead of using the preinstalled wordpress.
How do I go about it? I haven't found anything related to this topic searching the internet.
This is the webpage with preinstalled wordpress I'm talking about.
I did the same just 9 months ago ... you can literally start from scratch as you seem to not have too much on the wordpress page its not a big damage. Next steps: you can check if the theme you used is also available for html5 so it looks familiar and you need to choose a provider who hosts django unless you dont want to setup the server yourself. Any questions ... just ask.

Multiple Website with Single Database and Different urls WordPress?

I was looking to find a solution for making clone websites of my existing WordPress website. the thing is I want to make clones of the website so if one of them will somehow get down the others will be Live. For Example The Piratebay.com they have a lot of clone sites and I you would upload a torrent to one site all of them will have the same torrent available, this is just for example purposes. I want to make a clone of my website so if I add a new post to my any clone website or the original all of the websites will have the same post available on it. For sure they will have their own domain name. The website will use MySql as the form of database. I have searched all over the internet and on StackOverflow as well and couldn't fine a solutuion
Use the same Cloud MySQL database (e.g. Googles Cloud SQL) for all websites. Install wordpress on the first domain and then just copy the wordpress folder to the other destinations (or modify the wordpress-configuration at the other destinations).
Don't use absolute paths for images in your posts etc. (not http://example.com/something/image.jpg).

AngularJs real time app with mysql server

Is it possible to build a realtime app using AngularJs with a mysql database?
I've been reading thousands of tutorials, but they are all focused on express, nodejs, etc.. didn't found any documentation on wheter it's possible or not. I tried to take a look at the socket.io docs, but still didn't found anything relevant to this question.
I didn't tried anything yet because of this. I use a webApp based on AngularJs on a apache server (local).
Where should i start to be able to build a real time app using these tools i have?
Do i really need to use a node/express server?
What are the main consideration i need to do before taking this step?
Is there any documentation i should read?
I need to do this real time because it involves product orders, call center, ticket system, etc.. So everytime there is a new ticket is opened/changed, new order arrives, etc.. I need to make the user aware of this, without the need to refresh the page.
Or if someone could give me a further explanation of this concept and how to get started, it will be great.
You can run angular on top of any backend, although most examples push towards REST. If you want your app to feel like a real time application, using WebSockets is a likely improvement.
WebSockets play nice with Angular, look at https://github.com/wilk/ng-websocket for example. A back-end in Node will work, but many other backend techs will do equally well.
Here is a decent tutorial using MySQL, NodeJS, and Angular: https://codeforgeek.com/2015/03/real-time-app-socket-io/
I recommend that you keep using a webserver like Apache (my personal preference is Nginx). You can proxy API and socket requests to Node, and serve static resources for the app from a folder.
Check out https://httpd.apache.org/docs/2.4/mod/mod_proxy_wstunnel.html if you stay with Apache. Check out http://nginx.org/en/docs/http/websocket.html is you go for nginx.
Without a webserver, you'll have to either:
serve your static resources with Node (polluting your server project with client code), or
work with different ports, risking the app becomes unusable in client environments, or
work with different domains, giving you a CORS head-ache.
Although I don't have much experience with Node, MySQL with Node.js should help you out a bit.
You'll want to move away from Apache if you want to do websocket stuff with Socket.io
Yes, it is possible to create a software with AngularJS in the front end and any other server side language that speaks to MySQL. Few months back I worked on a software with Java Spring Framework in the backend with MySQL database and AngularJS with bootstrap in the front end. You could start by following the MVC pattern, where your views can be served as AngularJS and your Controller can be in any server side code, with MySQL database.

Is there any way to use facebook login on a localhost?

I am new to web development, I've learned php, mysql and javascript. I'm trying to make a website that uses facebook authentication and login. At the moment, I'm still working on localhost and am running xxamp. Is there any way to use the facebook development tools on a localhost? Or would it be simpler if I made my own mysql user database?
Thanks
Facebook authentication working same way in local environment as it working in every other place (just configure application using local URL's for "Canvas URL" and/or "Site URL"). To achieve this you may use both PHP-SDK and JS-SDK for that. See examples for PHP-SDK how-to implement authentication of user.
There is however functionality like social channels for which you'll need that Facebook be able to reach the machine your app running on (this may be solved with a bit of effort too)...

Wordpress post sync / publish to production

I'm using wordpress as a simple backend CMS for a flash site. Posts are queried and displayed in list format on the frontend. I want to be able to make post edits or add new posts on my staging server, and have a quick and easy way to publish changes to production without having to do a full mysql db dump / import. I've looked around for plugins or solutions but haven't found any. Seems like wordpress needs a "publish to production" option.
The intended workflow is that users can create or edit content as much as they want, then an editor will go through it and approve content. Once everything looks good on staging, we publish to production. Any ideas?
Some of this thread at Wordpress might be relevant for you as it concerns moving from staging to production and the use of relative and absolute paths, etc.
WordPress does have a preview button that should allow you to see the WP content without actually publishing. If you must see it in the flash site, I think your best bet will be to setup your flash site with XML-PRC.