Back end for App to record home bookkeeping. Built with with Node.js, Express and database in MongoDB.
You need to have mongoDB installed and a mongo server running. Once you have that, go to the project folder root and run the following to install all dependencies:
npm install
Create a .env
file based on the .env.example
and entry a port number and the uri for the connection with mongodb. Example: If you have mongodb locally running on default port, with a collection named 'mywallet' the uri would be:
DATABASE_URL=mongodb://127.0.0.1:27017/mywallet
Now run the mongodb server
mongod --dbpath ~/.mongo
And finally
npm run dev
You should see a log 'Server running at port [#PORT]'