kacperfaber / codziennemotto-pl-app

🎈 Responsive web app made with ❀ in Mithril for CodzienneMotto.pl 🎈

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CodzienneMotto.pl

Responsive Cross-Platform Application for codziennemotto.pl

CodzienneMotto.pl allows you to create a lists of daily quotes, invite users to join your list and schedule quote to specific day
I made with ❀ in Mithril and TypeScript.

Installation

# Clone the repo and change current working directory.
git clone https://www.github.com/kacperfaber/codziennemotto-pl-app && cd codziennemotto-pl-app

Setup the app

# Install dependencies
npm install

# Will download all assets
npm run setup

Run locally using serve

# Will use webpack.config.dev.js and run app as developer.
npm run run-dev

Configuration

The app actually uses only two configuration values

  • Profile - When it's developer, we have some developer tools active.
  • ApiUrl - URL when codziennemotto.pl API running. See api
// I'm using webpack-define-plugin to put this configuration variables into build.
// If you want to edit this, please see webpack.config.{profile}.js
// where {profile} is your active profile.
// for exmaple 'npm run run-dev' will work as developer.

new webpack.DefinePlugin({
    "process.env.PROFILE": JSON.stringify("dev"),
    "process.env.CONFIG": JSON.stringify({apiUrl: "http://localhost:8080"})
})

Author

Kacper Faber

About

🎈 Responsive web app made with ❀ in Mithril for CodzienneMotto.pl 🎈

License:MIT License


Languages

Language:TypeScript 91.1%Language:CSS 6.0%Language:JavaScript 1.7%Language:Java 0.8%Language:HTML 0.4%