ASP-Projects-Team-38 / Meal-App

Meal App
0 stars 0 forks source link

Meal-App

View the meal app's overall current progress here.

View the documentation created for the script files (utilising JSDocs) here.


To run it on your local machine

Required binaries: Binary Development Using Version
node v19.6.0
npm 9.4.0
docker Docker version 20.10.12, build e91ed57
mysql mysql Ver 8.0.32 for macos12.6 on x86_64 (Homebrew)

Steps:

  1. Run mysql container
    docker run -d -p 3306:3306 \
    --name mysql-container -e MYSQL_ROOT_PASSWORD=root \
     -e MYSQL_DATABASE=meal_app -e MYSQL_USER=sqluser \
     -e MYSQL_PASSWORD=password mysql/mysql-server:8.0.32
  2. Connect to the DB
    mysql -h 127.0.0.1 -u sqluser -p
  3. Switch to the application DB
    USE meal_app;
  4. Create DB tables using the SQL statements here
  5. Clone this repo
    git clone https://github.com/ASP-Projects-Team-38/Meal-App.git
    cd Meal-App
  6. Install dependencies
    npm install
  7. Run the app
    npm start
  8. Open the app in broswer
    http://127.0.0.1:5000