- Clone this repository by running
git clone git@github.com:noltron000-portfolio/backend.git
. - In your terminal,
cd
into the project root. - Run
yarn
to install dependencies. - Run
git submodule init
to register submodules. - Run
git submodule update
to clone submodules. - Make sure you have a local instance of
mongodb
running on port 27017. - Finally, you can run
yarn start
oryarn dev
.
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.