I currently have a website up and running, it was developed with Zurb Foundation. I developed a laravel application on localhost. I want to add the laravel app to my current live website. However, I do not want to have to build the website into the laravel app.
What is the best way to install laravel so I leave my website untouched basically just adding the laravel app ? I just want to add a login link to my current nav menu, and the login link takes me to the laravel app. Also, I do not want to use a sub-domain.
Thanks
Related
I currently have a website and web application running on smarterasp.net. The web application was built using Microsoft ASP.net using SQL database. The website was built using Gatsby JS with WordPress as a headless CMS. Due to the fact that I need to use a build hook to trigger automatic build and redeployment whenever updates are made to the WordPress CMS, there is a need to use Netlify for that since SmarterASP doesn't support that.
I plan to use domain.com for the actual website, app.domain.com for the web application, and wordpress.domain.com for the remote WordPress site.
Both the web application and WordPress will be hosted on SmarterASP while only the website will be hosted on Netlify.com.
How do I go through with it? Any guide will be sincerely appreciated.
There is a guide here but I don't really understand it:
https://www.smarterasp.net/support/kb/a1552/how-do-i-add-a-subdomain-name-while-having-my-main-domain-name-hosted-else-where.aspx?KBSearchID=926268
I need to create a WordPress plugin. This plugin is actually a Laravel project. Why I would do that? because we are making a mobile eCommerce application and we have already a WordPress website for the company we are creating the mobile application for, so we need to plug-in the WooCommerce to the WordPress website then exposing some REST APIs to the mobile application (i.e., getting products on sale, placing orders, creating a new customer etc.). In case anyone answer will be that WooCommerce having its own REST APIs, unfortunately it won't work as it requires oAuth 1.0a as its authentication method when requests comes from a remote client, not the same machine, and the mobile app will be created using Ionic 4 and Angular 5/6 and they do not support oAuth 1.0a.
I tried to create a WordPress plugin using the standard way by downloading the laravel project at the WordPress plugins folder and I created a plugin file within the laravel root directory and within it I referenced the server.php file in the same directory which is responsible for initiating the composer auto-loader and then bootstrapping the laravel, however, it did not work for me!!! I also tried a package laraish
However, when I created a simple hello world route it does not respond!
I am new to web development and and would like advice about what is the usual best practices to achieve what I am trying to do.
I am in charge of writing a frontend app using Vue. This frontend will require a login to access the app. The app will be hosted on Amazon.
However we are also wanting to build an eCommerce site in Wordpress or equivalent that sits on the root of the website, (eg www.mywebsite.com) with the app accessible through a "sign in" button. If the user presses the sign in button we want the location bar location to not change from the website they are on (www.mywebsite.com), even though the Wordpress site and Vue frontend may be stored on different locations/domains.
If the site is made in Wordpress, we can get another developer to do that webpage for us, while I work on the frontend. However we want the experience to be relatively seamless between connecting to the wordpress root site, clicking on the sign in button and being taken to the Vue frontend.
Is this possible? Do both sites have to be hosted on the same server for it to work (eg an Amazon EC2 server which hosts two webpages, the wordpress one and the vue one)?
Or can the wordpress put a link to the Vue frontend which doesn't change the web location to the user?
Or (worst case scenario) do we need to make both webpages in Vue as one Vue application, some pages requiring login to access and others not?
Thanks kindly for any assistance.
So in order to use Vue and WordPress together, you can either write 2 separate applications. One for the Frontend and one for the Backend, which is perfectly fine or you can simply write a WordPress Application with a Vue Theme.
This is how this could look like:
WordPress Backend
You can use a normal WordPress backend, where you can build the architecture you want to. In addition, you need to set up the REST-API Wordpress provides. So this also means, just use plugins which support it. Otherwise, you would need to write custom endpoints. For example, Woocommerce would be a good e-commerce plugin, since it supports the API.
Learn more about it here: https://v2.wp-api.org/
Of course, you can host your WordPress installation on Amazon. Here is a good guide for that: https://aws.amazon.com/de/getting-started/tutorials/launch-a-wordpress-website/
Notice: The REST-API is available in core since 4.7. If you are using an older version you would need to install a plugin.
WordPress Frontend
In order to create your Frontend, I'd recommend you to make a custom theme. Since you are just serving static files this can be done pretty easy. But still, you don't need to reinvent the wheel.
There's a really good starter theme out there: https://github.com/EvanAgee/vuejs-wordpress-theme-starter
It comes with all the stuff you need to get started and since it is just a theme, you can simply set up a usual WordPress hosting without handling Domains of multiple applications.
In order to get the data from the Backend, you would simply make calls to the REST-API. Here's an example: https://github.com/EvanAgee/vuejs-wordpress-theme-starter/blob/master/src/api/index.js
I have a Wordpress hosted application and I need to create a mobile version of it. As I read in one article, there is a way create a mobile application from hosted web application (not sure if that technique has any particular name). I was able to create the mobile application but I ran into a issue; when I am redirecting to any page, the mobile application is opening the browser to show the page. After some research I found that the solution will be to change all the href to window.open(url, '_system'). Is there any easier way to solve this issue?
The same article shows how to use the Camera plugin with the hosted ASP.Net application. Could anyone suggest an article that shows how to do the same thing but with Wordpress application.
You should have a look at WordPress hybrid project if you are looking for managed and performance enhanced app.
Otherwise, you can also use inAppBrowser for easy and fast development here is a Docs.
I'm working in a project based on Laravel 5 and my users will have their own pages: domain.com/user-page-slug (Route: /{user-page-slug}
After the user login in the system he will have the settings related to my project but I'm planning to give him the WordPress back-end then they can update their own pages and posts and for the front-end (using the route above) I want to render the WordPress theme selected.
For the rest of the system I'll use Laravel.
Do you know if it is possible?