Skip to content

A React single page application for a fake website called Home Goods, an e-commerce site for retailing furniture and other various items.

Notifications You must be signed in to change notification settings

FaceInCake/HomeGoods

Repository files navigation

NodeJS Build and Test

Development

Quick Start

  1. Clone the repo onto your computer
  2. Download nodejs if you don't have it
  3. Open a terminal, navigate to the new directory, and run npm install
  4. Download XAMPP if you dont have it
  5. Configure Apache to serve the new build folder
  6. Start the Apache server
  7. Start the MySQL server
  8. Go to phpMyAdmin
  9. Create a new database
  10. Create a user to interact with this database
  11. Create a .env file in the public/php/vars folder
  12. Populate the .env file with php variables of the database credentials
  13. Populate the database using the SQL Files
  14. Run npm run build
  15. You should be able to visit localhost with no issue

Dependencies

  • NodeJS
    • package.json contains additional nodejs modules
  • XAMPP
  • Bootstrap

Testing

  • Run npm run build to compile the website for production
  • Run npm test to run the basic tests

Deployment

Once you've compiled and built the website, you can simply transfer the files to your server.

I personally sftped them to my server using a .vscode sftp config file.

However, you can also scp or otherwise.

About

A React single page application for a fake website called Home Goods, an e-commerce site for retailing furniture and other various items.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published