How to Install and Manage a Stock Management System

Nov 23, 2022 | Programming

The Stock Management System is a powerful tool designed to help businesses keep track of their inventory seamlessly. In this blog post, we’ll guide you through the installation process and provide troubleshooting tips to ensure a smooth setup. We’ll also draw an analogy along the way to help clarify the code configuration.

Screenshots of the System

Login

Login

Dashboard

Dashboard

Profile

Profile

Records

Records

Modifying Records

Modifying Records

Installation Steps

Follow these steps to install the Stock Management System:

  1. Add the following lines in pathtoxamppapacheconfextrahttpd-vhosts.conf:
  2. 
        VirtualHost *:80
            DocumentRoot pathtoxampphtdocs
            ServerName localhost
        VirtualHost
        
        VirtualHost *:80
            DocumentRoot pathtoprojectpublic
            ServerName project.dev
        VirtualHost
        
  3. Add this in the C:WindowsSystem32driversetchosts file:
  4. 
        127.0.0.1 localhost
        127.0.0.1 project.dev
        
  5. Make sure to restart XAMPP after completing steps 1 and 2.
  6. Import the database project5.6 from the SQL file present in the SQL folder.
  7. Get your CurrencyLayer API Key from here and replace it in pathtoprojectpublicdistjspage.js at line number 1439. This is essential for receiving live commodity rates on the dashboard. Don’t forget to clear your browser’s cache after editing.
  8. Enter project.dev in your browser to visit the app, ensuring your XAMPP (Apache, MySQL) is running.
  9. You’re done!

Understanding the Configuration: An Analogy

Think of setting up the Stock Management System like building a new storefront for a retail business. Each configuration step is akin to setting up various parts of the store:

  • **Adding Virtual Hosts**: This is like creating different store fronts for different brands. You set up a pathway for customers (or in this case, the server) to access each brand (or application).
  • **Editing the Hosts File**: Similar to putting up a directory outside your store, your edits help direct traffic accurately, guiding customers to the right locations within your store.
  • **Restarting XAMPP**: Just like opening hours that need to be reset to let customers in, restarting XAMPP ensures the new changes take effect.
  • **Importing Database**: This is like stocking your store with products, ready for customers to browse and purchase.
  • **Replacing the CurrencyLayer API Key**: Think of this step as acquiring your pricing tools to ensure you have the correct prices displayed to your customers.
  • **Clearing Browser Cache**: This is akin to cleaning your storefront windows so that customers can see the fresh new products inside.

Troubleshooting Tips

If you encounter any issues during the setup, consider the following tips:

  • If you receive an alert that the Editor Datatables trial has expired, download the editor-datatables JS/CSS files from Editor and replace the content in the CSS and JS folder located at pathtoprojectpublicvendordatatables-editor. Remember to clear your cache after replacing these files.
  • Should you encounter bugs when editing tables, it may be due to the project’s JS file handling the editor-datatables becoming outdated. Check for updates or compatibility issues.

For more insights, updates, or to collaborate on AI development projects, stay connected with fxis.ai.

At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.

Stay Informed with the Newest F(x) Insights and Blogs

Tech News and Blog Highlights, Straight to Your Inbox