Skip to content

WildCodeSchool/2023-11-wns-bleu-g2-christmas-gifts-planner

Repository files navigation

Project logo

Christmas Gifts Planner

Status GitHub Issues GitHub Pull Requests License


Christmas gift planner is a collaborative platform designed to facilitate the sharing of gift ideas among family members or groups of friends while maintaining the element of surprise.

📝 Table of Contents

🧐 About

Our project, Christmas Gifts Planner, is a collaborative effort by a team of 4 individuals undergoing training as web developer designers. The project aims to facilitate members of a family or group of friends to discuss gift ideas without seeing what others are preparing for them. A dedicated discussion thread would be allocated to each member, enabling other members to exchange individual or collective gift ideas.

🏁 Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Before you begin, ensure you have met the following requirements:

Docker installed
Node.js installed
PostgreSQL installed

Installing

  1. Clone the repository:
git clone https://github.com/WildCodeSchool/2023-11-wns-bleu-g2.git
  1. Navigate to the project directory:
cd backend
  1. Create a .env file in the root directory and fill it with necessary environment variables:
# Example .env file
DATABASE_URL=postgres://username:password@localhost:5432/database_name
  1. Start the development server with Docker Compose:
docker-compose up --build
  1. Open your browser and navigate to http://localhost:3000 to view the application.

🔧 Running the tests

Backend Tests

To run the backend tests, navigate to the backend directory and execute:

cd backend
npm run test

This command runs the Jest test suite for the backend. It checks functionality like user profiles and user creation, ensuring all tests pass successfully.

Frontend Tests

To run the frontend tests, navigate to the frontend directory and execute:

cd frontend
npm run test

This command runs the Jest test suite for the frontend, ensuring that components render correctly.

E2E Tests

To run the end-to-end (E2E) tests, follow these steps:

  1. Navigate to the e2e-tests directory:
cd e2e-tests
  1. Install the required Playwright browsers
npx playwright install:
  1. Start the application using Docker:
npm run app:start
  1. Run the tests:
npm run test
  1. To view the test report:
npx playwright show-report

And coding style tests

The npm run lint command runs the next lint script, which checks the code for potential errors and enforces coding standards using ESLint. This helps maintain code quality and consistency across the project.

To run the linting tests, use the following commands:

cd frontend
npm run lint

⛏️ Built Using

✍️ Authors

This project was developed by the following contributors:

For more details on each contributor’s activity, visit the contributors page

🎉 Acknowledgements

  • Hat tip to anyone whose code was used
  • A big thank you to Wild Code School for their support and guidance throughout our training. Their trainers and community helped us acquire the skills needed to successfully complete this project.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages