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.git
Install the dependencies:
$ npm install
$ npm run dev
Go to http://localhost:3000
In the cloned directory you can find a Dockerfile:
$ docker build -t <tag> .
eg:
$ docker build -t lp76/trivia
In 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/trivia
Go to http://localhost:3000
To run the app in production mode:
$ npm run build
$ npm start
Go to http://localhost:3000