Yeoman generator for fun & profit
Want to see pretty graphs? Log in now!
npm install generator-tamagotchi
|4||downloads in the last week|
|8||downloads in the last month|
|Last Published By|
|Version||0.2.0 last updated 5 months ago|
|Keywords||development, dev, build, tool, cli, scaffold, yeoman, generator, reverse-proxy, webapp, modern workflows, spa|
|Dependencies||chalk, yeoman-generator, validator|
Tamagotchi - The yeoman pet
Create a project folder
Run the generator to create the base app
Run the sub-generator for components skeleton (you must be at the app root)
yo tamagotchi:component my-first-component
Reverse proxy support (optional)
Scenario: You need to hit a remote server where the services are deployed.
1 - If you answer yes tamagotchi will add support for reverse proxy and will make some questions.
2 - Generally there is a prefix in the URLs which helps you to separate the webapp from the services.
- https://22.214.171.124/ => here you have the webapp deployed
- https://126.96.36.199/services/ => here you have the services you target
In this case the URL prefix is /services
3 - In the example I'm using 188.8.131.52 as backend, but my webapp is running in my local computer (for example 192.168.1.2).
4 - For the port, I'm using 8081, but it could be any valid port number.
5 - The last question is related to the protocol, in the example I'm using https.
Install for developers
Make sure you have yo installed:
npm install -g yo bower grunt-cli
Clone the project
git clone email@example.com:dendril/generator-tamagotchi.git
Create a branch for your code (only required if you will do a change inside the generator).
git checkout -b my-changes-proposal
Link (simulate the standard installation till we have an official package)
NOTE: ONLY WINDOWS ENVIROMENT If you change between branches you must execute
npm rm -g generator-tamagotchiand
npm linkto update the generator
If you are updating your local copy of master, after merge the last changes:
With this, any dependency updated inside the generator will be automatically installed :smile: