Setting up our project
As mentioned, we will create a forum service for a Questions and Answers system. Our system will allow users to do the following:
- Register a user account
- Log in and out
- Post a question on a public board
- Reply to a question
- Reply to an answer
- Vote for a question
To code our project, we will use the same backend stack we used in previous chapters. So, we will start by bootstrapping the project. Open your terminal and enter the following command:
npx @aexol/axolotl create-yoga
Then ,enter the project folder and install the following additional dependencies:
npm i mongodb i-graphql jsonwebtoken
Let’s quickly review the dependencies here:
- MongoDB is a popular NoSQL database that provides a flexible and scalable solution to store and retrieve data. It uses a document-oriented model, where data is stored in flexible and schema-less documents, allowing for easy and dynamic data modeling.
- Axolotl is a code...