Meal Log App is a web application designed to help users track their meals and nutritional intake. This README provides instructions for setting up and running the application locally.
Before you begin, ensure you have met the following requirements:
- Node.js: Download and install Node.js from nodejs.org. This will also install npm, which is Node.js's package manager.
- Windows/MacOS: Use the installer from the website.
- Linux: You can use a package manager like
apt:sudo apt update sudo apt install nodejs npm
- Go: Download and install Go from golang.org.
- Windows/MacOS: Use the installer from the website.
- Linux: You can use a package manager like
apt:sudo apt update sudo apt install golang
-
Clone the Repository
Clone this repository to your local machine using:
git clone https://github.com/your-username/meal-log-app.git
-
Navigate to the Project Directory
cd meal-log-app -
Install Frontend Dependencies
Navigate to the
webdirectory and install the dependencies:cd web npm install -
Install Backend Dependencies
Navigate to the backend directory and install the dependencies:
cd ../backend go mod tidy
-
Start the Backend Server
In the
backenddirectory, run the following command to start the server:go run main.go
-
Start the Frontend Development Server
In the
webdirectory, run the following command to start the React development server:npm start
-
Access the Application
Open your web browser and go to
http://localhost:3000to access the application.
- web/: Contains the frontend React application.
- backend/: Contains the Go backend server code.
- db/: Database-related files and migrations.
- pkg/: Contains shared packages and configurations.
Contributions are welcome! Please read the CONTRIBUTING.md for guidelines on how to contribute to this project.
This project is licensed under the MIT License. See the LICENSE file for more details.