This blog is dedicated to showcasing my favorite video games and sharing my experiences with them. With the use of the latest web technologies and design trends, I have created a modern and responsive blog that is easy to navigate and enjoyable to use. From action-packed first-person shooters to engaging role-playing games, this blog covers a variety of genres and titles! Live demo: https://kocham-gry.vercel.app
- Next.js - React.js framework for building server-side rendered web applications
- Tailwind CSS - utility-first CSS framework for building custom designs quickly and easily
- Zod - JavaScript schema validation library
- MongoDB - NoSQL document database used for data storage and retrieval
- Remark - Markdown processor for parsing and rendering Markdown content
- Remark-HTML - library for converting Markdown to HTML
- Cypress - JavaScript end-to-end testing framework
- Markdown support for easy formatting of blog posts
- Search bar implementation for quick and efficient article searches
- Sorting posts by creation date and in alphabetical order
- Active Link navigation through blog posts for a better user experience
- SEO optimization with Next.js Metadata API
- Server-side form validation using Zod
- Customizable and reusable styling with Tailwind CSS
- Integration with MongoDB to store messages sent by contact form
- End-to-End tests for the contact form and posts page with Cypress
- Working with forms in Next.js 14: server actions, useFormState, and useFormStatus hooks
- Defining dynamic routes and generating static params
- Updating query params in Next.js
- SEO optimazation techniques
- Zod schema declaration and validation
- Sending requests to the MongoDB database and storing data
- End-to-End testing with Cypress
To install and start the app locally, follow these steps:
- Clone the repo:
git clone https://github.com/NacomiTagiera/Kocham-Gry.git
- Install the dependencies:
npm install
- Start the development server:
npm run dev
- Open http://localhost:3000 with your browser to see the result.
To run the Cypress E2E tests, follow these steps:
- Open a terminal in your project directory.
- Run the following command to open the Cypress Test Runner:
npx cypress open
This will open the Cypress Test Runner window.
- Click on the test file you want to run in the Cypress Test Runner.
If you prefer to run the tests in the terminal without opening the Cypress Test Runner window, you can use the following command:
npx cypress run
This will execute the tests headlessly, and the results will be displayed in the terminal.