restaurant-reviews's People
Forkers
marttp bitfarmer01 maxcodextc bharathjinka09 mohsenpedramnia basil2style jjudpow team-digiyogi miftahf mikailcetinkaya shlokster alexhcj renanpimentel seke76 jeremyfiel satyu26 kittitatnm davidmrlane giriputraadhittana01 rishavk99 maggiedeuitch rupeshpanwar vlb-dotcom nikitaawasarmol gszwxj run-zen oldjamestown adrienney29 dwrench07 deepu19g wazaha27 hansa31 tgerk briannabrown-hub ilensb anilparmar111 rchapine fpoyer isuru2atthanayake kowalewskipawel ssilva22 anawaratnemana catalinaeva1 jc-cedric chas-e erceozmet zilong-yang rifandani i-bombay jonathansum anbenedetti haaakon agunnamdi mutthudev swapnamoy17 widespreados erkamguresen bml104 safal-shrestha-ss vamshikrishnafive atu8020 carlosp81 arveymenon ujjwaltirkey frederickl amanshaikh212 codingprog technology-development jasperxihe ratbelly jchartier001 gasparpm kleeeeea mludovici asterfinde takaxis2 krishnamurtyp ar-rodrigues mahbha alesrossi n1dprime sanjeewafern alexdosy revailles tylaordman tomvsaji yizhou0522 bijeshguptabrj wathikahmed zoli1212 thesoftwares rbale0831 junyili1 solomonfoskaay ajponte sudarshangiri res0lve shimanti dal0110 akhlak-hossain-jimrestaurant-reviews's Issues
Cannot delete query
I have been able to post and update query no problem. However when I try to delete, I get a successful response but query still in database
Functions in RestaurantDataService should be static
Hello, the functions inside the RestaurantDataService class should be declared static. Like, static getAll(page = 0){ }
. If you don't do this, then JavaScript will not recognize getAll()
as a function unless you instantiate an object of type RestaurantDataService.
SyntaxError: Cannot use import statement outside a module
Cannot run server test. The error snippet is below. I copied the code and used my own .env file and got the below result.
Any help would be appreciated.
D:\code\Restaurant Reviews\backend>nodemon server
[nodemon] 2.0.12
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): .
[nodemon] watching extensions: js,mjs,json
[nodemon] starting node server index.js
D:\code\Restaurant Reviews\backend\index.js:1
import app from "./server.js"
^^^^^^
SyntaxError: Cannot use import statement outside a module
at Module._compile (internal/modules/cjs/loader.js:892:18)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
at Module.load (internal/modules/cjs/loader.js:812:32)
at Function.Module._load (internal/modules/cjs/loader.js:724:14)
at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10)
at internal/main/run_main_module.js:17:11
[nodemon] app crashed - waiting for file changes before starting...
Missing dependencies in package.json
There are two missing dependencies:
- react-router-dom
- bootstrap
Due to those missing dependencies, the project won't compile.
Additionally, there are a few missing anchor elements without "href" attribute and rel="noreffer" attribute, causing warnings.
All of the issues were already corrected in my pull request.
restaurants and login page not showing
non-existing members of MongoClientOptions
poolSize and useNewUrlParse are not members of MongoClientOptions
wtimeout is depracated in favor of wtimeoutMS.
Thanks,
Nimi
issue while running nodemon server
const MongoClient = mongodb.MongoClient
^
SyntaxError: Identifier 'MongoClient' has already been declared
this is thrown when I run the server.
youtube at 23:12
Multiple DB connection
Is there a reason for multiple db connections in your realm folder?
Multiple identical errors with mongodb.ObjectId
Hi, I am currently looking through the tutorial on the backend side and I am running into errors from the reviewsDAO.js
file. The error seems to be from const ObjectId = mongodb.ObjectID
section and I believe the correct code should be const ObjectId = mongodb.ObjectId
.
Additionally, after making this change, the error
TypeError: Class constructor ObjectId cannot be invoked without 'new'
is thrown so I believe we have to insert the new
keyword before every ObjectId throughout the file.
Only after this, the methods such as GET and PUT works.
If this is not just a personal error and a genuine error, I can open a pull request.
react-router-dom v6
Hi Beau,
In react-router-dom v6 there are a few syntactical changes - e.g Switch to Routes. I was wondering whether it'll be an updated version of MERN on restaurant case study. Great work by the way :)
Unable to post review: TypeError: Cannot read property 'insertOne' of undefined
Try to make a post request to add a review return with:
Unable to post review: TypeError: Cannot read property 'insertOne' of undefined
Cannot read properties of undefined (reading 'map')
The restaurants map(line 149) in restaurants-list.js is apparently undefined. There may be a change in data structure.
async mongodb connection error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.