{"repo":"CaptainFact/captain-fact-api","free":true,"listed":false,"github":"https://github.com/CaptainFact/captain-fact-api","clone":"git clone https://github.com/CaptainFact/captain-fact-api.git","description":"🔎 CaptainFact - API. The one that serves and process all the data for https://captainfact.io","language":"Elixir","stars":190,"topics":["elixir","phoenix","graphql","absinthe","hacktoberfest"],"license":"AGPL-3.0","category":"api-integrations-sdks","readme_excerpt":"CaptainFact.io Install & Run Prerequisites You need to install Elixir. We recommand using asdf-vm. Check their documentation on how to install it, then run asdf install from root captain-fact-api folder. Start DB Create or launch a PostgreSQL instance (e.g. local install or Docker). With Docker: docker run -d --name cf dev db -p 5432:5432 -e POSTGRES HOST AUTH METHOD=trust -e POSTGRES DB=captain fact dev postgres:16 Start API - mix deps.get -- Get dependencies - mix ecto.create -- Create DB - mix ecto.migrate -- Migrate DB - iex -S mix -- Start project Following services will be started: - localhost:4000 - REST API - localhost:4001 - REST API (HTTPS) - localhost:4002 - GraphQL API - localhost:4003 - GraphQL API (HTTPS) - localhost:4004 - Atom feed You can also see all e-mail sent, by going to http://localhost:4000/\\ dev/mail Other useful commands - mix test -- Run tests - mix test.watch -- Run test watcher - mix format -- Format code - mix ecto.gen.migration [migration name] -- Generate migration Project architecture This application is organized as an umbrella project which allows us to divide CaptainFact API into small apps. Linked projects - Community discussions and documentation - Front-end - Extension - Overlay injector","default_branch":null,"files":null,"tree":[],"storefront":"/r/CaptainFact","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/CaptainFact/captain-fact-api/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}