ethaan / vuexpresso Goto Github PK
View Code? Open in Web Editor NEW:crystal_ball: VueJS + Express + GraphQL Boilerplate
:crystal_ball: VueJS + Express + GraphQL Boilerplate
In config/index.js
database: {
mongoURL: 'mongodb://localhost:27017/example',
},
needs to be changed to:
database: {
mongoURL: 'mongodb://localhost:27017/',
name: 'databaseName',
},
And subsequently, build/dev-server.js
needs the following change:
// Create a MonboDB connection pool and start the Node.js app
MongoClient.connect(config.database.mongoURL, { promiseLibrary: Promise })
.catch(err => console.error(err.stack))
.then((db) => {
app.locals.db = db; // See http://expressjs.com/en/4x/api.html#app.locals
app.listen(port);
...
});
to:
MongoClient.connect(config.database.mongoURL, { promiseLibrary: Promise })
.catch(err => console.error(err.stack))
.then((client) => {
app.locals.db = client.db(config.database.name);
app.listen(port);
...
});
To reflect the changes made to in Mongodb v3+
Specifically:
version 3+ has connectCallback(error, client)
version 2 has connectCallback(error, db)
so there's an extra step in getting the collections.
I'd make a pull request, but I actually do not know how to do this yet.
I got empty page and condsole error
apolloProvider.collect is not a function
Migrate from vue-play
=> storybook
I solved it temporarily by downgrade:
yarn remove mongodb --save
yarn add [email protected] --save
When adding a post after successful save when the user hits the button 'Submit' again there is a message Cannot read property 'variables' of undefined
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.