This is a Nuxt.js application designed to work with a backend API. Below are the instructions for setting up, configuring, and running the application.
Before setting up the project, ensure that your system meets the following requirements:
- Node.js 16.x or later
- npm 8.x or later
- Nuxt.js 3 or later
- Backend API (e.g., Laravel backend running at
http://127.0.0.1:8000
)
First, clone the repository to your local machine:
git clone git@github.com:kennethtomagan/whoi-frontend.git
cd whoi-frontend
Install the Node.js dependencies using npm:
# npm
npm install
Copy the .env.example file to create your own environment configuration:
cp .env.example .env
Then, update the .env file with your backend API URL:
API_URL="http://127.0.0.1:8000"
Start the development server on http://localhost:3000:
# npm
npm run dev
Ensure your backend API is running and accessible. The API URL should be configured in your .env file as API_URL. For example, if you are using a Laravel backend, you can set the API_URL in the .env file as follows:
API_URL="http://127.0.0.1:8000"