{"id":23143646,"url":"https://github.com/digitalinteraction/thinkactive-api","last_synced_at":"2025-04-04T12:14:47.168Z","repository":{"id":141112743,"uuid":"169442831","full_name":"digitalinteraction/thinkactive-api","owner":"digitalinteraction","description":"API component for the thinkactive project","archived":false,"fork":false,"pushed_at":"2019-02-06T17:20:36.000Z","size":392,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T22:11:16.852Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/digitalinteraction.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-06T17:05:11.000Z","updated_at":"2024-11-08T12:31:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"4025b280-f223-4536-83f8-8c68e2979ba2","html_url":"https://github.com/digitalinteraction/thinkactive-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalinteraction%2Fthinkactive-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalinteraction%2Fthinkactive-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalinteraction%2Fthinkactive-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalinteraction%2Fthinkactive-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digitalinteraction","download_url":"https://codeload.github.com/digitalinteraction/thinkactive-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247174467,"owners_count":20896078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-12-17T15:13:54.120Z","updated_at":"2025-04-04T12:14:47.163Z","avatar_url":"https://github.com/digitalinteraction.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Think Active Api\n\n## Configure\nAdd your database and session key in the configuration files:\n```text\napp/config/db.js\n.env\n```\n\n## Db Setup\nTo set up the database for this project use the [SequelizeJs CLI](https://github.com/sequelize/cli) and ensure you have entered your db credentials in the config/db.js (see db.example.js)\n\n```bash\nsequelize db:create\n```\n\n## Running\nTo run, use the docker-compose command to spin up the container and run the proejct\n\n```bash\ndocker-compose up -d\n```\n\n## Sequelize CLI\nRunning sequelize CLI for generating models etc can be done using docker exec (already running docker container)\n\n```bash\n# Run the sequelize cli inside your container\ndocker-compose exec web npx sequelize model:generate \\\n  --name Organisation --attributes name:string, logo:string\n\n# Or run locally (If you have packages installed on the host)\nnpx sequelize # ...\n```\n\n## Sequelize commands\n\n```bash\n# Run migrations\ndocker-compose exec web npx sequelize db:migrate\n```\n\n```bash\n# Run seeds\ndocker-compose exec web npx sequelize db:seed:all\n```\n\n## Deployment\n\nThis project is deployed through [Docker](https://www.docker.com/what-docker). It uses a Continuous Integration to build a docker image when you push a [git tag](https://git-scm.com/book/en/v2/Git-Basics-Tagging) to the GitLab repository.\n\nThe project is versioned using NPM's semantic versioning through the `npm version` command.\n\n```bash\n\n# Deploying a version (commit your changes before this)\nnpm version # ... (minor | major | patch)\ngit push\n\n# Migrating the live db\ndocker exec -it your_container_name npm run migrate\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalinteraction%2Fthinkactive-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitalinteraction%2Fthinkactive-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalinteraction%2Fthinkactive-api/lists"}