bradtraversy / bookstore Goto Github PK
View Code? Open in Web Editor NEWSimple RESTful JSON api using Nodejs, Express and MongoDB
Simple RESTful JSON api using Nodejs, Express and MongoDB
I know, old repo, older video, but the information is still relevant.
in the connection string on app.js, if you don't append
{useUnifiedTopology: true, useNewUrlParser: true, useCreateIndex: true }
then you will get some deprecation warnings.. New connection string should be:
mongoose.connect('mongodb://localhost/bookstore', {useUnifiedTopology: true, useNewUrlParser: true, useCreateIndex: true });
Versions:
Node 10.16.3
Express: 4.17.1
MongoDB: 4.2
Mongoose: 5.8.9
I think line 35 is one closing div too many; it is not necessary.
If you update the book using a single field, all other fields will be set as empty. That error is being displayed in the video (In you-tube at 58:50) also.
I had a little problem with my code while coding during the tutorial and for some reason the app could not load the data from the mongodb.
So I cloned this github repo, it works fine only that every thing is similar to the source code I have. Through trial and trial I realised that when the bower components are reinstalled into the client folder the cloned github repo can't get any data from the db.
I am new to all this and I know the repo was created a long time ago, but I would like to know how I could fix this.
Edit: the cloned repo while running also has an exclamation mark in the url which I learnt that the hash prefix was changed.
Edit 2: The attached file is a compressed copy of the bookstore repo with the reinstalled bower componets
Thanks in advance.
Replace https//www.youtube.com/watch?v=eB9Fq9I5ocs&ab_channel=TraversyMedia
With https://www.youtube.com/watch?v=eB9Fq9I5ocs&ab_channel=TraversyMedia
(add : after https)
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.