Lorville Clothing is a blend of industry standard technologies, carefully harnessed to create a compelling e-commerce platform. This project serves as a portfolio application, meticulously crafted to demonstrate my proficiency in a range of key technologies, including React, Redux, React Router, Firebase, Styled Components, and OAuth authentication.
This app is deployed on Netlify free tier. So please give the service time to spin up for the demo.
- React: The foundation of our project, enabling the creation of dynamic and responsive user interfaces.
- React Router: Seamlessly navigates users through the application, ensuring a smooth user experience.
- Firebase: Powers the backend, providing robust authentication and data management services.
- Styled Components: Employs the concept of CSS-in-JS to produce maintainable and elegant styles, enhancing visual appeal.
- Vite: A fast development build tool that serves your code via native ES modules, enabling fast development and production builds.
- OAuth: A standardized and secure authentication method that safeguards user data and privacy.
Lorville Clothing offers a range of features that enhance the shopping experience:
-
Sign Up and Sign In: Users can securely create accounts and log in using OAuth authentication, ensuring data privacy.
-
Log Out: A user-friendly log-out option for secure session management.
-
Browse Clothing: Explore a diverse range of clothing items, conveniently categorized for easy navigation.
-
Add to Cart: Seamlessly add clothing items to your shopping cart with a single click.
-
Firebase Integration: Firebase powers user management and clothing data, ensuring efficient data handling and retrieval.
Lorville Clothing, beyond its role as an e-commerce website, serves as a compelling showcase of my technical aptitude. By skillfully integrating these cutting-edge technologies.
To deploy Lorville Clothing and make it accessible online, you can follow these steps:
Start by cloning the Lorville Clothing repository to your local machine:
git clone https://github.com/Hthrace/LorvilleClothing.git
cd lorville-clothing
Navigate to the project's directory and install the necessary dependencies using npm or yarn:
npm install
# or
yarn install
To configure Firebase for your Lorville Clothing project, follow these steps:
-
Visit the Firebase Console and sign in with your Google account (or create a new one if you don't have one).
-
Click on "Add Project" and give your project a name, then follow the setup instructions. You can choose the settings that best suit your project.
-
After creating the project, click on the gear icon (Project settings) in the left sidebar.
-
Scroll down to the "Your apps" section and click on the web icon (</>).
-
Register your app by providing a nickname for your app (e.g., "Lorville Clothing") and click "Register App."
-
Firebase will provide you with a Firebase configuration object that includes your API keys. You'll use this information to set up Firebase in your project.
Now that you have obtained your Firebase configuration object, you can set up Firebase in your project without storing sensitive data in the .env
file.
Learn More About Firebase API Keys & Security Here
// In your project's Firebase configuration file (e.g., firebaseConfig.js)
const firebaseConfig = {
apiKey: "YOUR_API_KEY",
authDomain: "YOUR_AUTH_DOMAIN",
projectId: "YOUR_PROJECT_ID",
storageBucket: "YOUR_STORAGE_BUCKET",
messagingSenderId: "YOUR_MESSAGING_SENDER_ID",
appId: "YOUR_APP_ID",
};
export default firebaseConfig;
Replace the placeholder values in the firebaseConfig
object with the actual values from your Firebase project.
Build the project to create a production-ready version:
npm run build
# or
yarn build
Choose a hosting service for deployment. We recommend Netlify due to its ease of use and compatibility with React applications:
- Sign up for a Netlify account if you don't have one.
- Create a new site on Netlify.
- Configure the deployment settings by specifying the build command as
npm run build
oryarn build
and the publish directory asbuild
.
Finally, deploy your project to Netlify by linking your GitHub repository. Whenever you push changes to your GitHub repository, Netlify will automatically rebuild and deploy your project.
For more detailed instructions on deploying a React project to Netlify, please refer to Netlify's documentation.
Your Lorville Clothing project is now deployed and accessible to users online.
This project is a personal portfolio app, and I currently do not accept contributions. However, you are free to fork the repository and modify it to suit your needs. If you have any suggestions or find issues, feel free to create an issue in the repository.
This project is licensed under the MIT License.