8000 GitHub - akadev1/resto-app
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

akadev1/resto-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

resto-app

Great! Let's go through the steps to publish your restaurant delivery app.

1. Frontend Deployment (Vue.js)

We'll use Vercel for deploying the frontend. Here’s how you can do it:

  1. Install Vercel CLI:

    npm install -g vercel
  2. Login to Vercel:

    vercel login
  3. Deploy your Vue.js app:

    cd resto-app
    vercel

    Follow the prompts to complete the deployment. Your app will be live on a Vercel URL.

2. Backend Deployment (Node.js)

For the backend, we can use Heroku. Here’s how:

  1. Install Heroku CLI:

    npm install -g heroku
  2. Login to Heroku:

    heroku login
  3. Create a new Heroku app:

    cd backend
    heroku create
  4. Deploy your Node.js app:

    git init
    git add .
    git commit -m "Initial commit"
    git push heroku master

    Your backend will be live on a Heroku URL.

3. Connecting Frontend and Backend

Update your Vue.js app to point to your Heroku backend URL for API requests. For example, in your Vue.js app, you might have an API service file:

const API_URL = 'https://your-heroku-app.herokuapp.com';

export const placeOrder = async (order) => {
  const response = await fetch(`${API_URL}/order`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    body: JSON.stringify(order),
  });
  return response.json();
};

4. Final Touches

  • Domain Name: Consider getting a custom domain name for your restaurant app.
  • SSL Certificate: Ensure your app is secure by using HTTPS.
  • Testing: Thoroughly test your app to ensure everything works smoothly.

Would you like more detailed guidance on any of these steps? Or is there anything specific you need help with?

About

No description, website, or topics provided.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%
0