create account

Opinionated quasar-framework starter kit - Part 1 by gregory.latinier

View this thread on: hive.blogpeakd.comecency.com
· @gregory.latinier ·
$47.69
Opinionated quasar-framework starter kit - Part 1
Hello there,
I'm creating this starter kit for future projects to (re)build using the new version of the [Quasar Framework](https://steemit.com/quasar-framework/@quasarframework/quasar-1-0-reaching-for-the-stars) v1.0

This first part is mainly to put the project out there.

#### The projects

The admin website
![](https://cdn.steemitimages.com/DQmfMh44nJFxA7MsfTc6thdvVZhm7NWfZhZ1DRw7gYG495G/image.png)

The client website
![](https://cdn.steemitimages.com/DQmPJ3YZ69Qeo36kAiJtcZgy48pimccuUxvnFdPUANiYC4P/image.png)

#### Stack

The stack I used was selected to fit my needs.  Could I have choose other packages? Sure, but now I'm all in favour for productivity instead of "using the latest cool tech out there in pre alpha"

Most of the projects will need a client front, a separated admin application, probably some microservices that will need to interact with the database outside the API

Let's go over the different choices and alternatives

- **[lerna](https://github.com/lerna/lerna)**: the project packages manager. Let's go monorepo! Other alternatives are [yarn workspaces](https://yarnpkg.com/lang/en/docs/workspaces/), [meta](https://github.com/mateodelnorte/meta)
- **[quasar-framework](http://quasar-framework.org)**: Both client and admin will be done using the latest version. That's the whole point of this kit actually. Alternatives... well not for me :D
- **[hapi](https://hapijs.com/)**: Here I stick to what I know for the API and what I currently use most. There are so many possibilities... here are a few,  [expressjs](https://expressjs.com), [koa](https://koajs.com/), [feathers](https://feathersjs.com/), [sails](https://sailsjs.com/), [graphQL and apollo](https://www.apollographql.com/) and a lot more.
- **[mongodb](https://www.mongodb.com)**: I like my NoSQL! MyQSL, MariaDB, PostgreSQL, CouchDB, ... 

#### Current features

- For now the client and admin website have a login form
- The admins can only use admin website and the clients the client website
- The guest are redirected to the login page if they attempt to go to an authenticated user only page

#### Repository
https://github.com/gregory-latinier/quasar-starter-kit

- https://github.com/gregory-latinier/quasar-starter-kit/pull/1 => Init the repo with lerna as a package manager
- https://github.com/gregory-latinier/quasar-starter-kit/pull/2 => Add the sample quasar v1.0
- https://github.com/gregory-latinier/quasar-starter-kit/pull/3 => And a basic hapi server
- https://github.com/gregory-latinier/quasar-starter-kit/pull/4 => And a database package that contains the models
- https://github.com/gregory-latinier/quasar-starter-kit/pull/5 => Api token auth
- https://github.com/gregory-latinier/quasar-starter-kit/pull/6 => Add a login page
- https://github.com/gregory-latinier/quasar-starter-kit/pull/7 => Add authenticated route and redirect to login page
- https://github.com/gregory-latinier/quasar-starter-kit/pull/8 => Export the models to enable require instead of using request
- https://github.com/gregory-latinier/quasar-starter-kit/pull/9 => Add an admin website


#### Roadmap
There are some basic features that will be added soon. Here is a non exhaustive list:

- API Linting
- API authenticated / optional endpoints
- API endpoints validation
- Web form validation util using the built-in quasar features
- Precommit hooks
- ...

The idea is to stay the most generic possible so that I don't need to remove features for every new project.


#### GitHub Account
https://github.com/gregory-latinier

Stay tuned for more
πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 127 others
properties (23)
authorgregory.latinier
permlinkopinionated-quasar-framework-starter-kit-part-1
categoryutopian-io
json_metadata{"tags":["utopian-io","development","quasar-framework"],"image":["https://cdn.steemitimages.com/DQmfMh44nJFxA7MsfTc6thdvVZhm7NWfZhZ1DRw7gYG495G/image.png","https://cdn.steemitimages.com/DQmPJ3YZ69Qeo36kAiJtcZgy48pimccuUxvnFdPUANiYC4P/image.png"],"links":["https://steemit.com/quasar-framework/@quasarframework/quasar-1-0-reaching-for-the-stars","https://github.com/lerna/lerna","https://yarnpkg.com/lang/en/docs/workspaces/","https://github.com/mateodelnorte/meta","http://quasar-framework.org","https://hapijs.com/","https://expressjs.com","https://koajs.com/","https://feathersjs.com/","https://sailsjs.com/","https://www.apollographql.com/","https://www.mongodb.com","https://github.com/gregory-latinier/quasar-starter-kit","https://github.com/gregory-latinier/quasar-starter-kit/pull/1","https://github.com/gregory-latinier/quasar-starter-kit/pull/2","https://github.com/gregory-latinier/quasar-starter-kit/pull/3","https://github.com/gregory-latinier/quasar-starter-kit/pull/4","https://github.com/gregory-latinier/quasar-starter-kit/pull/5","https://github.com/gregory-latinier/quasar-starter-kit/pull/6","https://github.com/gregory-latinier/quasar-starter-kit/pull/7","https://github.com/gregory-latinier/quasar-starter-kit/pull/8","https://github.com/gregory-latinier/quasar-starter-kit/pull/9","https://github.com/gregory-latinier"],"app":"steemit/0.1","format":"markdown"}
created2019-02-22 01:42:15
last_update2019-02-22 01:42:15
depth0
children7
last_payout2019-03-01 01:42:15
cashout_time1969-12-31 23:59:59
total_payout_value36.338 HBD
curator_payout_value11.354 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,538
author_reputation34,278,323,818,021
root_title"Opinionated quasar-framework starter kit - Part 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id80,218,235
net_rshares88,641,448,642,017
author_curate_reward""
vote details (191)
@helo ·
$11.18
- Great starter kit indeed that uses my favorite Vue framework: Quasar.  I'm dying to know @nothingismagick's opinion on this. ;-)
- It seems this file creates a default user and admin account: `quasar-starter-kit/packages/database/init/users.json` but I do not see any information on the current password or recommandation about not leaving it in there by default.  That would leave a known back door in any derived project.
      


Your contribution has been evaluated according to [Utopian policies and guidelines](https://join.utopian.io/guidelines), as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, [click here](https://review.utopian.io/result/3/2-2-1-1-1-2-2-).

---- 
Need help? Chat with us on [Discord](https://discord.gg/uTyJkNm).

[[utopian-moderator]](https://join.utopian.io/)
πŸ‘  , , , , , , , , , , , , , , , , , , ,
properties (23)
authorhelo
permlinkre-gregorylatinier-opinionated-quasar-framework-starter-kit-part-1-20190222t232557409z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"users":["nothingismagick"],"links":["https://join.utopian.io/guidelines","https://review.utopian.io/result/3/2-2-1-1-1-2-2-","https://discord.gg/uTyJkNm","https://join.utopian.io/"],"app":"steemit/0.1"}
created2019-02-22 23:25:57
last_update2019-02-22 23:25:57
depth1
children2
last_payout2019-03-01 23:25:57
cashout_time1969-12-31 23:59:59
total_payout_value8.498 HBD
curator_payout_value2.680 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length883
author_reputation121,547,934,535,311
root_title"Opinionated quasar-framework starter kit - Part 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id80,261,516
net_rshares20,343,716,398,473
author_curate_reward""
vote details (20)
@gregory.latinier ·
Yes those are testing data if you want to check the website for dev
Of course for production you shouldn't use this!
properties (22)
authorgregory.latinier
permlinkre-helo-re-gregorylatinier-opinionated-quasar-framework-starter-kit-part-1-20190223t093236237z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2019-02-23 09:32:36
last_update2019-02-23 09:32:36
depth2
children0
last_payout2019-03-02 09:32:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length116
author_reputation34,278,323,818,021
root_title"Opinionated quasar-framework starter kit - Part 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id80,277,526
net_rshares0
@utopian-io ·
Thank you for your review, @helo! Keep up the good work!
properties (22)
authorutopian-io
permlinkre-re-gregorylatinier-opinionated-quasar-framework-starter-kit-part-1-20190222t232557409z-20190225t171556z
categoryutopian-io
json_metadata"{"app": "beem/0.20.17"}"
created2019-02-25 17:15:57
last_update2019-02-25 17:15:57
depth2
children0
last_payout2019-03-04 17:15:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length56
author_reputation152,955,367,999,756
root_title"Opinionated quasar-framework starter kit - Part 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id80,380,569
net_rshares0
@steem-ua ·
#### Hi @gregory.latinier!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
**Feel free to join our [@steem-ua Discord server](https://discord.gg/KpBNYGz)**
properties (22)
authorsteem-ua
permlinkre-opinionated-quasar-framework-starter-kit-part-1-20190223t023124z
categoryutopian-io
json_metadata"{"app": "beem/0.20.18"}"
created2019-02-23 02:31:27
last_update2019-02-23 02:31:27
depth1
children0
last_payout2019-03-02 02:31:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length295
author_reputation23,214,230,978,060
root_title"Opinionated quasar-framework starter kit - Part 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id80,266,734
net_rshares0
@steemitboard ·
Congratulations @gregory.latinier! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

<table><tr><td>https://steemitimages.com/60x70/http://steemitboard.com/@gregory.latinier/voted.png?201902230232</td><td>You received more than 3000 upvotes. Your next target is to reach 4000 upvotes.</td></tr>
</table>

<sub>_[Click here to view your Board](https://steemitboard.com/@gregory.latinier)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>



> Support [SteemitBoard's project](https://steemit.com/@steemitboard)! **[Vote for its witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1)** and **get one more award**!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-gregorylatinier-20190223t031323000z
categoryutopian-io
json_metadata{"image":["https://steemitboard.com/img/notify.png"]}
created2019-02-23 03:13:21
last_update2019-02-23 03:13:21
depth1
children0
last_payout2019-03-02 03:13:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length775
author_reputation38,975,615,169,260
root_title"Opinionated quasar-framework starter kit - Part 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id80,267,716
net_rshares0
@supermegaship ·
looking nice! Quasar is really great, I'm happy to see some projects start using it :-)

Keep up the great work!
properties (22)
authorsupermegaship
permlinkre-gregorylatinier-opinionated-quasar-framework-starter-kit-part-1-20190222t131646273z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"steempeak","app":"steempeak/1.7.2b"}
created2019-02-22 13:16:45
last_update2019-02-22 13:16:45
depth1
children0
last_payout2019-03-01 13:16:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length112
author_reputation603,223,961,123
root_title"Opinionated quasar-framework starter kit - Part 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id80,238,955
net_rshares0
@utopian-io ·
Hey, @gregory.latinier!

**Thanks for contributing on Utopian**.
We’re already looking forward to your next contribution!

**Get higher incentives and support Utopian.io!**
 Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via [SteemPlus](https://chrome.google.com/webstore/detail/steemplus/mjbkjgcplmaneajhcbegoffkedeankaj?hl=en) or [Steeditor](https://steeditor.app)).

**Want to chat? Join us on Discord https://discord.gg/h52nFrV.**

<a href='https://steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1'>Vote for Utopian Witness!</a>
properties (22)
authorutopian-io
permlinkre-opinionated-quasar-framework-starter-kit-part-1-20190224t180800z
categoryutopian-io
json_metadata"{"app": "beem/0.20.17"}"
created2019-02-24 18:08:03
last_update2019-02-24 18:08:03
depth1
children0
last_payout2019-03-03 18:08:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length598
author_reputation152,955,367,999,756
root_title"Opinionated quasar-framework starter kit - Part 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id80,337,339
net_rshares0