This is a sample project illustrating the integration of Fastify and Mercurius GraphQL to develop a simple cats sharing network application. This project leverages cutting-edge technologies to deliver a robust and efficient solution.
- Fastify: A high-performance web framework for Node.js known for its speed and low overhead.
- Mercurius: A GraphQL adapter for Fastify, enabling seamless GraphQL integration into Fastify applications.
- Knex.js: A SQL query builder for Node.js that supports multiple database systems, simplifying database interactions and migrations.
- SQLite3: A lightweight, serverless relational database engine used for local development and testing purposes.
- Follow/Unfollow Users: Establish connections with other users to stay updated on their activities.
- Like/Unlike Cats: Interact with adorable cat profiles by liking or unliking them.
- Like/Unlike Photos: Engage with captivating cat photos through likes and unlikes.
- Admin Controls: Administrators can manage user accounts, cat profiles, and uploaded photos by enabling or disabling them.
Ensure you have the following installed before proceeding:
- Node.js
- Yarn
Follow these steps to set up and run the project:
- Clone this repository to your local machine.
- Navigate to the project directory in your terminal.
- Run
yarn
to install all project dependencies. - Execute
yarn dev
to start the server. - Open your web browser and go to
http://localhost:3000/graphiql
to access the GraphiQL playground.
This project is licensed under the MIT License. For more details, refer to the LICENSE file.
- Original fork by Yuri Fontella: YuriFontella
- Maintained by Dang Khoa: dangkhoa2016