Giter Club home page Giter Club logo

webkonquest's Introduction

WebKonquest

KDE Konquest porting as a progressive web app.

Install dependencies

First install nodejs >= 8.x and yarn from the official website, then install ionic globally.

yarn global add ionic

Then install all the dependencies.

(cd ./core && yarn install)
(cd ./client && yarn install)
(cd ./server && yarn install)

To keep the client and server always with the last version of core you can use the yarn link command. This will set up your local dependency so that, whenever you make a change on it, it's immediately updated in your main project.

  1. Run yarn link (with no additional flags) from within webkonquest core:
(cd ./core && yarn link)
  1. Run yarn link from within the main projects:
(cd ./client && yarn link "webkonquest-core")
(cd ./server && yarn link "webkonquest-core")

Source: https://stackoverflow.com/a/41879331

Production build

To build the production package...

Core

Build the core.

(cd ./core && yarn build)

Server

Build the server

(cd ./server && yarn build)

and install every non-dev dependency in the dist folder.

(cd ./server && yarn install --production --modules-folder ./dist/node_modules)

Client

Build the client

(cd ./client && yarn build --prod)

and copy the client package in the server package.

(cp -R ./client/www ./server/dist/public)

The package is ready, in the folder ./server/dist!

To deploy on Azure

Copy also the following files from ./server to ./server/dist:

  • azuredeploy.json
  • iisnode.yml
  • package.json
  • process.json
  • web.config

Development environment

To start client and server in a development environment...

Core

Build the core.

(cd ./core && yarn build)

Server

Start the server.

(cd ./server && yarn start:dev)

It will be available on localhost:4200.

Client

Start the client.

(cd ./server && yarn start)

It will be available on localhost:8080.

Other links

webkonquest's People

Contributors

mcgiogen avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

ionic4-toolbox

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.