To run the CRWN-Clothing V2 GraphQL locally, follow these steps:
-
Clone the repository:
git clone https://github.com/Nidhish-D-Nayak/crwn-clothing-v2-graphql.git
-
Navigate to the project directory:
cd crwn-clothing-v2-graphql
-
Install the dependencies:
yarn install
-
Set up Firebase:
- Create a Firebase project and obtain the necessary configuration credentials.
- Copy the Firebase configuration object into the
src/utils/firebase/firebase.utils.js
file. - Enable the desired Firebase authentication methods (e.g., Email/Password, Google, etc.).
-
Start the development server:
yarn start
-
Open your browser and visit http://localhost:3000 to access the CRWN-Clothing V2 GraphQL app.
- React: JavaScript library for building user interfaces.
- Styled Components: CSS-in-JS library for styling React components.
- Firebase: Backend-as-a-Service (BaaS) platform for authentication, database, and storage.
- GraphQL: Query language for APIs.
Here's an overview of the project's folder structure:
├── public/ # Public assets and HTML template
├── src/
│ ├── assets/ # Assets used in the application
│ ├── components/ # Reusable React components
│ ├── contexts/ # State management contexts
│ ├── routes/ # Top-level application pages
│ └── utils/ # Utility functions and constants - Firebase & Reducer
└── ...
We welcome contributions to the CRWN-Clothing V2 GraphQL App project! If you would like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch for your feature/fix:
git checkout -b feature-name
. - Make your changes and commit them:
git commit -m 'Add some feature'
. - Push the changes to your forked repository:
git push origin feature-name
. - Open a pull request to the main repository's main branch.
This project is licensed under the MIT License. Feel free to use, modify, and distribute the code as per the terms of the license.
If you have any questions, suggestions, or feedback, please don't hesitate to reach out. You can contact the project maintainer at nidhibelthangady@gmail.com.
Happy shopping with the CRWN-Clothing V2 GraphQL App! 🛍️