Nuxt.js project
A simple app powered by Nuxt.js that shows a quote from http://numbersapi.com
Clone the repository:
$ git clone https://github.com/eloquentbit/trivia.gitInstall the dependencies:
$ npm install
$ npm run devGo to http://localhost:3000
In the cloned directory you can find a Dockerfile:
$ docker build -t <tag> .eg:
$ docker build -t lp76/triviaIn order to run the image run the following command:
$ docker run -d -p 3000:3000 -e HOST=0.0.0.0 \
--rm --name trivia <image name>eg:
$ docker run -d -p 3000:3000 -e HOST=0.0.0.0 \
--rm --name trivia lp76/triviaGo to http://localhost:3000
To run the app in production mode:
$ npm run build
$ npm startGo to http://localhost:3000