Frontend functionality in typescript without a framework.
This is a demo of how an environment is set up to code frontend functionality in typescript A simple translation handling is done with i18n JSON files. Therefor a URL parameter is used to choose the language.
The following programs or modules are necessary:
- Node JS: This Project was set up using version8.x
- Typescript: This Project uses 3.2.2
Check out the repository with you favorite Gite client.
Within the directory install node dependencies with npm npm install
or width yarn yarn install
.
Run npm start
or if you prefer yarn yarn start
for a dev server. Navigate to http://localhost:3000/
if the page doesn't load up by it self.
The app will automatically reload if you change any of the source files.
Run npm run deploy
to build the project. The build artifacts will be stored in the deploy/
directory.
Run npm run docs
to build the documentation. The documentation will be generated within a docs/ folder
"THE BEER-WARE LICENSE" (Revision 42): Daniel Kugler[email protected] wrote this file. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return.
Daniel Kugler