-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from caions/feature/readme
chore: add readme
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Habit Tracker Backend | ||
|
||
This is the repository for the backend of the Habit Tracker application, a Node.js API for tracking daily habits. | ||
This API was developed using Node.js and PostgreSQL as the database, and it follows the principles of Hexagon Architecture. | ||
|
||
## 🚀 Instalation | ||
|
||
To install the project dependencies, run the following command: | ||
|
||
``` | ||
npm install | ||
``` | ||
|
||
Additionally, you need to create a PostgreSQL database named "habit-tracker" before starting the server. | ||
|
||
## Available Routes | ||
|
||
### Habits | ||
|
||
- GET /habits/: Returns the list of habits. | ||
- POST /habits/: Creates a new habit. | ||
- PUT /habits/: Updates an existing habit. | ||
- DELETE /habits/: Removes a habit. | ||
- GET /habits/{id}: Returns information about a specific habit with the corresponding ID. | ||
|
||
### Habits Completion Date | ||
|
||
- GET /habitsCompDate/: Returns the list of habit completion dates. | ||
- POST /habitsCompDate/: Creates a new habit completion date. | ||
|
||
## API Documentation | ||
|
||
Detailed API documentation is available in Swagger at the /doc route. You can access it in your browser to get information on how to use the routes and available parameters. | ||
|
||
## Running Tests | ||
|
||
``` | ||
npm run test | ||
``` | ||
|
||
## GitFlow and CI/CD | ||
|
||
This project follows GitFlow standards for branch management and development workflow. Additionally, continuous integration (CI) and continuous delivery (CD) are achieved through GitHub Actions to ensure that code is automatically tested and deployed to production. | ||
|
||
## Hosting | ||
|
||
The API is hosted at https://habit-tracker-backend.vercel.app/. |