Skip to content

Commit

Permalink
Merge pull request #6 from caions/feature/readme
Browse files Browse the repository at this point in the history
chore: add readme
  • Loading branch information
caions committed Oct 3, 2023
2 parents 0742048 + fc49df7 commit 7d4556c
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions README.md
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/.

0 comments on commit 7d4556c

Please sign in to comment.