Untitled.mov
Link to the deployed Site
Link to the Excalidraw planning board Link
Brief description of the project
Provide a brief introduction to your project. Mention the purpose, goals, and any important background information.
To run this project locally, follow these steps:
- Clone the repository:
git clone <repository-url>
cd <project-directory>
- Install the dependencies:
npm install
- Create a
.env
file in the server root directory and set the required environment variables:
PORT=<port-number>
MONGO_URI=<mongodb-connection-string>
- Start the server:
npm start
The API provides the following endpoints:
- Description: Adds a new status.
- Parameters:
name
: Name of the status (string).
- Response:
201
: If the status is successfully created.400
: If the status name already exists.500
: If there's an internal server error.
- Description: Retrieves all statuses.
- Response:
200
: If the statuses are successfully retrieved.400
: If there are no statuses to be found.500
: If there's an internal server error.
- Description: Deletes a status.
- Parameters:
id
: Id of the status to be deleted (string).
- Response:
204
: If the status is successfully deleted.400
: If the status does not exist.500
: If there's an internal server error.
- Description: Edits the initial status and updates related statuses.
- Parameters:
id
: Id of the new initial status (string).
- Response:
200
: If the initial status is successfully updated along with related statuses.400
: If the status does not exist or is already the initial status.500
: If there's an internal server error.
- Description: Resets the statuses and transitions (for testing purposes).
- Response:
204
: If the reset is successful.500
: If there's an internal server error.
- Description: Adds default statuses and transitions (for testing purposes).
- Response:
201
: If the default statuses and transitions are successfully created.400
: If the statuses array is empty.500
: If there's an internal server error.
- Description: Adds a new transition.
- Parameters:
name
: Name of the transition (string).sourceId
: Id of the source status .targetId
: Id of the target status .
- Response:
201
: If the transition is successfully created.400
: If the transition name already exists.500
: If there's an internal server error.
- Description: Retrieves all transitions.
- Response:
200
: If the transitions are successfully retrieved.500
: If there's an internal server error.
- Description: Deletes a transition.
- Parameters:
id
: Id of the transition to be deleted.
- Response:
204
: If the transition is successfully deleted.400
: If the transition does not exist.500
: If there's an internal server error.
Explain how to use the endpoints with examples if necessary.
If you want to contribute to this project, follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make the changes and commit them.
- Push the changes to your forked repository.
- Open a pull request to the main repository.