Welcome to WTFunko β your go-to e-commerce platform for Funko Pop! figures! Developed as a university project, WTFunko showcases the power and versatility of NoSQL databases in managing an online store.
Explore the benefits of using NoSQL databases like MongoDB for e-commerce:
NoSQL databases handle both unstructured and semi-structured data seamlessly. This means you can store diverse information such as product details and user reviews without complex schema modifications. Ideal for adapting to evolving business needs!
Experience high performance and reliability under heavy loads. NoSQL databases distribute data across multiple servers and offer horizontal scalability, ensuring your e-commerce site remains responsive even during traffic spikes.
Optimized for big data, NoSQL databases support distributed storage and parallel processing. This efficiency is crucial for personalized marketing, customer segmentation, and inventory management, ensuring smooth operations even with large datasets.
Enhance user satisfaction with real-time recommendations, dynamic pricing, and personalized product suggestions. NoSQL databases manage user data effectively, leading to tailored content and offers that boost sales and engagement.
NoSQL databasesβ schema-less nature simplifies development and maintenance. Developers can add new fields and features without disrupting existing functionality, speeding up deployment and minimizing risks.
First, install a local or host a NoSQL MongoDB database. If hosting, update the URI, Database Name, and, if needed, user and password in the database.py file.
Next, ensure you have Python installed and create a virtual environment. Install the required packages from requirements.txt
. To start the server, use uvicorn with the --reload option to apply changes, or simply use python3 app.py.
Finally, navigate to the client directory and install the necessary packages with npm install. To start the client, use either npm run dev or npm run. Steps
- Locally install MongoDB or set up a hosted MongoDB instance.
- Update the URI, Database Name, and credentials in database.py if needed.
python3 -m venv venv
# On Windows use `venv\Scripts\activate`
source venv/bin/activate
pip install -r requirements.txt
npm install
By following these steps, you can set up and run the project locally or in a hosted environment, ensuring both the server and client are properly configured.
FastAPI needs the requirements installed to be started:
uvicorn app:app --reload
# or
python3 app.py
React need the requireemets by NodeJS/npm to be started:
npm run # or `npm run dev` for dev mode
You can view the API documentation using FastAPI by visiting the /docs endpoint of your server (i.e http://localhost:8000/docs). Once your application is running and accessible, simply navigate to your server's URL followed by /docs. This interactive interface provides a comprehensive list of available APIs, including details on each supported request, required parameters, allowed HTTP methods, and expected responses. It's an invaluable tool for quickly exploring and understanding the functionality offered by your APIs without the need to manually reference static documentation.
The dataset was sourced from Kaggle and can be accessed here.
This dataset was extracted using Pandas, analyzed, and cleaned by applying ETL (Extract, Transform, Load) principles. After extraction, a JSON file was created for each collection (Users, Orders, and Products). These JSON files will be used by the server to initially populate the database after establishing the connection.## Acknowledgements
FastAPI is a modern web framework for building APIs with Python 3.7+ based on standard Python type hints. It offers high performance with automatic interactive documentation (Swagger UI), WebSocket support, GraphQL integration, CORS middleware, OAuth2 authentication, and more.
MongoDB is a flexible and scalable NoSQL database that stores data in JSON-like documents. It is widely used for modern web applications due to its horizontal scalability, ease of use, and speed.
React is a JavaScript library for building user interfaces, developed by Facebook. It is known for creating reusable components that efficiently manage application state. React uses a component-based approach to build dynamic and responsive user interfaces.
Vite is a fast build tool for modern web development. It is designed to speed up the development server and hot module replacement (HMR) thanks to its ESModule support, enabling JavaScript module imports without a build step.
In the realm of modern application development, there are numerous useful tools and libraries that enhance productivity and efficiency. Some of these include:
- Axios: A promise-based HTTP client for making AJAX requests.
- Bootstrap: CSS framework for building responsive and styled user interfaces.
These tools and technologies are widely adopted in the software development community to improve the quality, maintainability, and performance of modern applications.
This project is licensed under the GNU General Public License v3.0.
GNU General Public License v3.0
Contributors:
Project Manager:
For support, email antonio.garofalo125@gmail.com or contact the project contributors.
See the documentation project docs here).