{"id":21381257,"url":"https://github.com/reiosantos/tembea","last_synced_at":"2026-02-20T00:31:35.777Z","repository":{"id":38225657,"uuid":"219795323","full_name":"reiosantos/tembea","owner":"reiosantos","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-22T12:58:57.000Z","size":8888,"stargazers_count":1,"open_issues_count":31,"forks_count":3,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-04-07T11:12:03.753Z","etag":null,"topics":["express","javascript","maps","nodejs","slack","slack-api","tembea"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reiosantos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-05T16:45:43.000Z","updated_at":"2021-06-06T15:02:55.000Z","dependencies_parsed_at":"2023-01-30T09:30:58.326Z","dependency_job_id":null,"html_url":"https://github.com/reiosantos/tembea","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/reiosantos/tembea","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reiosantos%2Ftembea","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reiosantos%2Ftembea/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reiosantos%2Ftembea/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reiosantos%2Ftembea/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reiosantos","download_url":"https://codeload.github.com/reiosantos/tembea/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reiosantos%2Ftembea/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29637408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T22:32:43.237Z","status":"ssl_error","status_checked_at":"2026-02-19T22:32:38.330Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["express","javascript","maps","nodejs","slack","slack-api","tembea"],"created_at":"2024-11-22T10:45:04.360Z","updated_at":"2026-02-20T00:31:35.764Z","avatar_url":"https://github.com/reiosantos.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tembea\n\n[![CircleCI](https://circleci.com/gh/andela/tembea.svg?style=svg)](https://circleci.com/gh/andela/tembea)\n\n[![Maintainability](https://api.codeclimate.com/v1/badges/2c9375e12e9652a7ec9f/maintainability)](https://codeclimate.com/repos/5bf472b3752a29565a00c791/maintainability)\n\n[![Test Coverage](https://api.codeclimate.com/v1/badges/2c9375e12e9652a7ec9f/test_coverage)](https://codeclimate.com/repos/5bf472b3752a29565a00c791/test_coverage)\n\nTrip management at it's best for Andela.\n\n## Description\n\n**Tembea** is the our solution for making trip request, scheduling, reporting and analytics very easy at Andela.\n\n## Table of Contents\n\n- [tembea](#tembea)\n  - [Description](#description)\n  - [Table of Contents](#table-of-contents)\n  - [Documentation](#documentation)\n  - [Setup](#setup)\n    - [Dependencies](#dependencies)\n    - [Getting Started](#getting-started)\n      - [Database and ORM](#database-and-orm)\n    - [More about environmental variables](#more-about-environmental-variables)\n    - [Run the Service Using Docker](#run-the-service-using-docker)\n  - [Testing](#testing)\n  - [Deployment](#deployment)\n  - [Docker for Local development](#docker-for-local-development)\n\n## Documentation\n\n`/api/v1/slack` : our slack integration is our MVP\n\n## Setup\n\n### Dependencies\n\n- [NodeJS](https://github.com/nodejs/node) - A JavaScript runtime environment\n- [Express](https://github.com/expressjs/express) - A web application framework for NodeJS\n- [PostgreSQL](https://github.com/postgres/postgres) - A relational database management system that extends SQL\n- [Sequelize](https://github.com/sequelize/sequelize) - A promise-based ORM for NodeJS\n\n### Getting Started\n\nFollow these steps to set up the project in development mode\n\n- Install [Nodejs](https://nodejs.org/en/download/)\n- Install and setup [PostgreSQL](https://www.postgresql.org/)\n- Clone the repository by running the command\n\n  ```[bash]\n  git clone https://github.com/andela/tembea.git\n  ```\n\n- Run `cd tembea` to enter the application's directory\n- Install the application's dependencies by running the command\n  ```\n  yarn install\n  ```\n- Create the `.env` or `.env.development` file by running `cp .env.sample .env` or `cp .env .env.development`\n- Populate the env file created above by obtaining valid values for the environment variables. (Consult your teammates).\n- Setup the database and migrations (**_see [database setup](#database-and-orm, 'setting up database')_**)\n- Start the application by running\n  ```\n  yarn run start:dev\n  ```\n  The application should now be running at `http://127.0.0.1:5000`\n\n#### Database and ORM\n\n- Create a database in `PostgreSQL` and name it `tembea`\n- Set the following environment variables in `.env` (to be created in the `env` directory):\n\n  - `DATABASE_USERNAME` - this is the database username\n  - `DATABASE_PASSWORD` - this is the database password. Ignore if you don't have a database password\n  - `DATABASE_NAME` - set this to `tembea`\n\n- Run database migrations\n  ```\n  yarn run db:migrate\n  ```\n- Check the database and confirm that the `users` table has been created\n\n### More about environmental variables\n\nAfter setting up your `.env` from the template provided in the `env/.env.sample` file;\nto use these environment variables anywhere in the app, simply:\n\n```[js]\nprocess.env.MY_ENV_VARIABLE\n```\n\n### Run the Service Using Docker\n\n\u003e NOTE: Make sure no service is running on port 5000 and ensure there is a `.env` file with all the necessary environment variables.\n\nTo run the application just type: `make start`\n\nthis would run your application inside a container which you can easily access using `localhost:5000`.\n\nTo stop the application, you can just hit `^c`.\n\nTo delete the containers: `make stop`\n\n\u003e WARNING: Running below command will make you loose all your data including data in the database!\n\nTo cleanup all the containers + volumes: `make clean`\n\n\u003e NOTE: The below commands should be run when the application is running inside container\n\nTo migrate database: `make migrate`\n\nTo seed database: `make seed`\n\nTo rollback migrations: `make rollback`\n\nTo get inside the container: `make ssh`\n\nHINT: To use docker, ensure that your .env file does not contain `DATABASE_URL` as it conflicts with the value in `docker-compose.yml`\n\n## Testing\n\n[Jest](https://jestjs.io) is used as the testing framework for both the unit tests and integration tests.\nTo execute all tests, run the command\n\n```\n  yarn test or make test\n```\n\n## Deployment\n\nTODO - add deployment commands\n\n## Docker for Local development\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freiosantos%2Ftembea","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freiosantos%2Ftembea","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freiosantos%2Ftembea/lists"}