20 февраля 2018 г.
nuxt
vuetify
In the frontend we should save our user in the store. Let’s make new one client/store/auth.js:12345678910111213141516171819202122export const stat ...
Read more
15 февраля 2018 г.
mongo
passport
I highly recommend to use Postman to test your REST api, especially in this part.Let’s get started with authentication with installing passport.js ...
Read more
15 февраля 2018 г.
mongo
UserModelWhen you’re talking about user you may find plenty things of properties he could have.Let’s check out main ones:
name - aka username;
em ...
Read more
13 февраля 2018 г.
mongo
ConnectionWe’re going to use mongoose to communicate with our MongoDb instance. Make sure MongoDb running and configured.For storing sessions in t ...
Read more
13 февраля 2018 г.
express
log
LoggingConsole logging is good, but it doesn’t cover all needs. Server could turn off instantly and you won’t see any messages, or there’s plenty ...
Read more
13 февраля 2018 г.
express
HelpersHelpers will land in server/helpers directory, so add an alias in package.json for it:1"@helpers": "./server/helpers"
E ...
Read more
12 февраля 2018 г.
nuxt
express
Nuxt12yarn add nuxtyarn add stylus stylus-loader --dev
Lets make client directory in our project. It will contain whole frontend code made with Nu ...
Read more
12 февраля 2018 г.
eslint
git
BeginTo start new project create new directory and run this commends to init node application and git:12yarn initgit init
I will use yarn, but you ...
Read more