Prerequisites • Installation Steps • Additional Commands
Make sure you have the following installed before proceeding:
Node.js (Latest LTS version recommended)
# Clone this repository
$ git clone https://github.com/tranduckhuy/time-swap/
# Navigate to the frontend directory
$ cd time-swap/frontend
# Install dependencies
$ npm installNote If you're using Linux Bash for Windows, see this guide or use
nodefrom the command prompt.
Inside the frontend folder, create a file named .env and add the following variables:
API_AUTH_BASE_URL='YOUR AUTH API BASE URL GOES HERE'
API_BASE_URL='YOUR API BASE URL GOES HERE'
API_GPT_URL='YOUR API CHAT GPT URL GOES HERE'
AUTH_CLIENT_URL='YOUR DEPLOYED PAGE URL GOES HERE'
CHAT_GPT_KEY='YOUR CHAT GPT API KEY GOES HERE'
CHAT_GPT_ORG_KEY='YOUR CHAT GPT ORGANIZATION KEY GOES HERE'Note Make sure to replace the placeholder values with your actual configuration.
# Start server
$ npm startNote This will launch the frontend at http://localhost:4200/ by default.
- Build the project for production:
# Build the project
$ npm run buildNow your frontend is up and running! 🚀
