vue-express-mongo-boilerplate icon indicating copy to clipboard operation
vue-express-mongo-boilerplate copied to clipboard

first run problems

Open boulabiar opened this issue 6 years ago • 1 comments

Hi,

I tried running but I have many error messages related to scss. Then I get this Error: req.flash() requires sessions

The full error is here https://pastebin.com/n6URnP8h

Is anyone able to run this without modifications?

boulabiar avatar Nov 02 '18 20:11 boulabiar

@boulabiar I got this error about a month ago when I was converting this project to use Sequelizer. I believe it was because the session module was unable to access the sessions table ( in your case collection ) for the database.

I just cloned, did a yarn install and a yarn dev and it's working for me. You should have the following collections in your mongo db

$ mongo MongoDB shell version v3.6.3 connecting to: mongodb://127.0.0.1:27017 MongoDB server version: 3.6.3 > use boilerplate-dev; switched to db boilerplate-dev > show collections; agendaJobs devices identitycounters posts sessions users`

CodyCodeman avatar Nov 14 '18 19:11 CodyCodeman