- Download an SSL certificate using this link.
- Place the SSL certificate in the root directory of the project.
- Create a
.env
file based on the.env.example
file. - Install the dependencies by running
npm install
. - Load data into a database by running
npm run load
. - Run the server by running
npm run start
.
GET http://localhost:3000/expenses
GET http://localhost:3000/expenses?merchant=Airbnb&category=Travel
GET http://localhost:3000/expenses/:id
PUT http://localhost:3000/expenses/:id
DELETE http://localhost:3000/expenses/:id
POST http://localhost:3000/expenses/search
{
"query": "Travel with Airbnb"
}
POST http://localhost:3000/expenses/ask
{
"query": "How much have I spent on Netfix?"
}