Git Product home page Git Product logo

expense-tracker-mern's Introduction

Expense Tracker (MERN)

Full stack expense tracker

Usage

change config.env file in config folder
 npm install
 cd client npm install
 cd ..
 
 # Run front and backend
 npm run dev
 
 # Backend only
 npm run server
 
 # Frontend only
 npm run client
 
 # Build client
 cd client
 npm run build
 
 # Prod
 npm start

expense-tracker-mern's People

Contributors

bradtraversy avatar dependabot[bot] avatar guks avatar mhtkar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

expense-tracker-mern's Issues

Destructured Values not used in Transactions Controller

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.

Deployment issue

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

Console warning for unique key prop on TransactionList

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.