bradtraversy / expense-tracker-mern Goto Github PK
View Code? Open in Web Editor NEWFull stack expense tracker
Full stack expense tracker
Hi Brad,
Great video as always.
I'm not sure if this is an issue, but in the Transactions controller method addTransaction
you destructure req.body
into text
and amount
, however in the call to mongoose use the original req.body
.
Should the call to mongoose not use the destructured values instead?
Keep up the good work.
Hi Brad, thanks so much for this free course. There is a warning you may want to take care of for the client.
Steps to reproduce:
Run: npm run dev
Open localhost:3000
Open console
Warning log:
Warning: Each child in a list should have a unique "key" prop.
Check the render method of `TransactionList`. See https://fb.me/react-warning-keys for more information.
in Transaction (at TransactionList.js:19)
in TransactionList (at App.js:19)
in div (at App.js:16)
in GlobalProvider (at App.js:14)
in App (at src/index.js:5)
When I tried running the application after cloning it on my computer I'm getting this error.
Error: Invalid connection string
This is my first time trying to deploy a MERN stack app. I followed most of the steps on this video as a reference on deploying it. https://www.youtube.com/watch?v=71wSzpLyW9k&t=211s
It does build successfully on Heroku, but when I open the app I am getting the following errors.
Important to note that I get the exact same errors when I cloned Brad's project and deployed it.
I do enter my MONGO_URI key as an environment variable.
Seems to be an issue with the path.
Link to my code just in case, https://github.com/8brandon/expense-tracker-react
But like I said I have the same issue when cloning Brad's.
Thanks for you help
heroku[web.1]: State changed from up to crashed
heroku[web.1]: Process exited with status 1
heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=nameless-river-88195.herokuapp.com request_id=3b914276-c9cc-4fdc-b7dc-952a12142624 fwd="95.90.246.172" dyno= connect= service= status=503 bytes= protocol=https
heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=nameless-river-88195.herokuapp.com request_id=ebaeff8a-a140-4d1f-9fe1-c2138d3fadb5 fwd="95.90.246.172" dyno= connect= service= status=503 bytes= protocol=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.