- Clone this repository by running
git clone [email protected]/nebuloid-blog/backend.git
. - In your terminal,
cd
into the project root. - Create a
.env
file and populate it with the requisite data! - Run
yarn
to install dependencies. - Run
git submodule init
to register submodules. - Run
git submodule update
to clone submodules. - Open Docker Desktop and run
docker-compose up -d
. - Finally, you can run
yarn start
oryarn dev
. - Now, you can use apps like MongoDB Compass and Altair GraphQL Client!
I started this project out using Express + GraphQL. GraphQL is my preferred choice for APIs because of how fast it is!
This project does not use Apollo GraphQL, because it wasn't reasonable or me to build the backend with that large of a scope. If needed, I can grab utilities from Apollo à la carte. See also, GraphQL the Simple Way.
When creating an API, the frontend is only as powerful as the backend! The backend opts to use GraphQL Codegen for type declarations. See also, GraphQL.js vs. TypeGraphQL vs. GraphQL Nexus
For this project, I've opted to generate my own styleguide to follow. I'd like to delve into the deep end of formatters and understand what they are capable of. After all, I do have my own opinions about code style, as does everyone else of course. To make this work, I've extended my own ESLint config, Tabbify.