/marvel-app

Primary LanguageJavaScriptMIT LicenseMIT

Marvel App

Known Vulnerabilities

Screen Shot

Docker Installed: Build Setup

Build image and start container

# build the environment
make build

# run the container
make run

Stop container when necessary

# stop the container
make stop

Start container if image was already built from step 1

# start the container
make run

Docker Not Installed: Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

# run unit tests
npm run unit

# run e2e tests
npm run e2e

# run all tests
npm test

For detailed explanation on how things work, checkout the guide and docs for vue-loader.

Heroku Deploy

# Create a Heroku Dyno using Node.js buildpack
heroku apps:create YOUR-HEROKU-DYNO-NAME --buildpack https://github.com/heroku/heroku-buildpack-nodejs

# Add static buildpack as secondary
heroku buildpacks:add https://github.com/heroku/heroku-buildpack-static --index 2

# Set `API_PROXY_ORIGIN` environment variable
heroku config:set API_PROXY_ORIGIN="https://gateway.marvel.com/v1/public/"

# Deploy your application
git push heroku master

In your browser navigate to https://YOUR-HEROKU-DYNO-NAME.herokuapp.com/

Used packages

License

This project is licensed under the MIT License. Copyright © Magno Biét