Giter Club home page Giter Club logo

vue-todo-app's Introduction

todo-app

It is an easy project to practice the integration between vue, vuex and Element.ui.

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Deploy on heroku server

  1. Create server.js file on your root app's directory.
  2. Sure that "express" and "serve-static" dependencies are installed.
  3. Install heroku on your machine (instructions) --> https://devcenter.heroku.com/articles/heroku-cli
  4. Heroku steps (do the next steps on your terminal).
    • heroku login
    • heroku create vue-todo-app
    • git init (Only if your project not have git repo)
    • heroku git:remote -a vue-todo-app
    • git add .
    • git commit -am "Heroku deployment"
    • git push heroku master
  5. Your app is ready you can see all heroku steps on heroku's documentation.

My app on heroku: https://vue-todo-test.herokuapp.com/

Deploy on webapp.io

  1. Fork this repository (with the Layerfile).
  2. Create a free account at webapp.io.
  3. Install webapp.io on your GitHub.
    • Make sure that webapp.io has access to this forked repository.
  4. Push to your forked repository.
    • Force push to the master branch if needed.
  5. Wait for the Layerfile to finish running on the "Recent Commits" page
  6. Click on the "Deploy" button after the Layerfile finishes successfully, and select a domain to deploy to.

For more information, check out the webapp.io docs on hosting.

Github pages

To have github pages on any vue project:

  1. deploy.sh file --> Add this file to root app's folder.
#!/usr/bin/env sh

# abort on errors
set -e

# build
npm run build

# navigate into the build output directory
cd dist

# if you are deploying to a custom domain
# echo 'www.example.com' > CNAME

git init
git add -A
git commit -m 'deploy'

# if you are deploying to https://<USERNAME>.github.io
# git push -f [email protected]:<USERNAME>/<USERNAME>.github.io.git master

# if you are deploying to https://<USERNAME>.github.io/<REPO>
git push -f [email protected]:OussamaAlouat/vue-todo-app.git master:gh-pages

cd -
  1. vue.config.js --> Add this file to root's app. (I decide put '/vue-todo-app' because is my github project name. You put there your github project name)
module.exports = {
    baseUrl: process.env.NODE_ENV === 'production'
        ? '/vue-todo-app/'
        : '/'
}

License: MIT

vue-todo-app's People

Contributors

dependabot[bot] avatar joshdsouza8 avatar oussamaalouat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.