Skip to content

miaslls/MiaMood-server

Repository files navigation

This page is in English English. Para visualizar essa página em Português Português, clique aqui.


Server icon MiaMood (server)

Static Badge: Personal Static Badge: Node.js Static Badge: Express Static Badge: Mongoose Static Badge: MongoDB

🌐 API Reference

Create mood

POST /

Get all moods

GET /

Get today moods

GET /date/today

Find moods by date

GET /date
Query Param Description
year Required. 4-digit year
month Required. 2-digit month
day Required. 2-digit day

Find moods by text

GET /search
Query Param Description
text Optional. Any text

Get mood by ID

GET /id/${id}
Parameter Type Description
id string Required. ID of mood to fetch

Update mood

PUT /update/${id}
Parameter Type Description
id string Required. ID of mood to update

Delete mood

DELETE /delete/${id}
Parameter Type Description
id string Required. ID of mood to delete

⚙️ Install and Run

Clone the project

> git clone https://github.com/miaslls/MiaMood-server.git

Go to the project directory

> cd MiaMood-server

Install dependencies

> npm install

Run the project

> npm run start

👩‍💻 Authors

📑 Related Projects

🫶 Acknowledgements

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks