CaptainFact / Captain Fact Api
Licence: agpl-3.0
π CaptainFact - API. The one that serves and process all the data for https://captainfact.io
Stars: β 145
Programming Languages
elixir
2628 projects
Projects that are alternatives of or similar to Captain Fact Api
Graphql Ld.js
Linked Data Querying with GraphQL
Stars: β 65 (-55.17%)
Mutual labels: graphql, hacktoberfest
Action policy Graphql
Action Policy integration for GraphQL
Stars: β 110 (-24.14%)
Mutual labels: graphql, hacktoberfest
Graphql Doctrine
Automatic GraphQL types from Doctrine entities
Stars: β 81 (-44.14%)
Mutual labels: graphql, hacktoberfest
Vulcan
π A toolkit to quickly build apps with React, GraphQL & Meteor
Stars: β 8,027 (+5435.86%)
Mutual labels: graphql, hacktoberfest
Wp Graphql Yoast Seo
This is an extension to the WPGraphQL plugin for Yoast SEO
Stars: β 120 (-17.24%)
Mutual labels: graphql, hacktoberfest
Iban.im
Shorten, create and share memorable links for IBANS
Stars: β 60 (-58.62%)
Mutual labels: graphql, hacktoberfest
Thorium
Platform for starship simulator controls
Stars: β 109 (-24.83%)
Mutual labels: graphql, hacktoberfest
Sql To Graphql Schema Generator
βοΈ Generate GraphQL Scheme Online From SQL Query - https://sql-to-graphql.now.sh/
Stars: β 32 (-77.93%)
Mutual labels: graphql, hacktoberfest
Graphql Live Query
Realtime GraphQL Live Queries with JavaScript
Stars: β 112 (-22.76%)
Mutual labels: graphql, hacktoberfest
Nextjs Headless Wordpress
π₯ Nextjs Headless WordPress
Stars: β 110 (-24.14%)
Mutual labels: graphql, hacktoberfest
Hackatalk
TalkTalk renewal. Open source chat app built-in expo managed work flow
Stars: β 123 (-15.17%)
Mutual labels: graphql, hacktoberfest
Umbraco Graphql
An implementation of GraphQL for Umbraco 8 using GraphQL for .NET.
Stars: β 52 (-64.14%)
Mutual labels: graphql, hacktoberfest
Graphql To Sparql.js
Converts GraphQL queries to SPARQL queries
Stars: β 62 (-57.24%)
Mutual labels: graphql, hacktoberfest
Siler
β‘ Flat-files and plain-old PHP functions rockin'on as a set of general purpose high-level abstractions.
Stars: β 1,056 (+628.28%)
Mutual labels: graphql, hacktoberfest
Strapi
π Open source Node.js Headless CMS to easily build customisable APIs
Stars: β 41,786 (+28717.93%)
Mutual labels: graphql, hacktoberfest
Strawberry
A new GraphQL library for Python π
Stars: β 891 (+514.48%)
Mutual labels: graphql, hacktoberfest
Yummy Phoenix Graphql
Cooking recipe sharing app built with Phoenix, React, GraphQL and Kubernetes
Stars: β 112 (-22.76%)
Mutual labels: graphql, phoenix
Netcoreblockly
.NET Core API to Blockly - generate from WebAPI, Swagger, OData, GraphQL =>
Stars: β 121 (-16.55%)
Mutual labels: graphql, hacktoberfest
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 / launch a PostgreSQL instance on your local machine. If you have Docker installed, you can use the pre-Seed PostgreSQL Docker image:
docker run -d --name cf_dev_db -p 5432:5432 captainfact/dev-db:latest
Start API
-
mix deps.get
--> Get dependencies -
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.
.
βββ apps
β βββ cf => Core functions as a library. **Not deployed**
β βββ cf_atom_feed => Atom feed.
β βββ cf_graphql => GraphQL API (public).
β βββ cf_jobs => Jobs.
β βββ cf_rest_api => REST/WS API (private).
β βββ db => DB repository and schemas **Not deployed**
β βββ lib
β β βββ db
β β βββ db_schema => Contains all the schemas (Video, Speaker, Commentβ¦etc)
β β βββ db_type => Special types (SpeakerPictureβ¦etc.)
β β βββ db_utils => Some utility functions
β βββ priv
β βββ repo/migrations => All DB migrations files
βββ README.md => You're reading it right now. Are you?
βββ rel => Release configs & tools
β βββ commands => Commands that will be available to run on the release (seed DBβ¦etc.)
β βββ hooks => Some hooks for automatically run commands when release run.
β βββ runtime_config => Runtime configurations for all apps.
β βββ config.exs => Release configuration.
Linked projects
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].