Skip to content

eloquentbit/trivia

Repository files navigation

Trivia

Nuxt.js project

A simple app powered by Nuxt.js that shows a quote from http://numbersapi.com

Tools

Getting started

Demo

Clone the repository:

$ git clone https://github.com/eloquentbit/trivia.git

Install the dependencies:

$ npm install
$ npm run dev

Go to http://localhost:3000

Build a docker image

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

Production

To run the app in production mode:

$ npm run build
$ npm start

Go to http://localhost:3000

About

A simple app powered by Nuxt.js that shows a quote from http://numbersapi.com

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published