The platform that aims to simplify your online gift exchange and secret santa for free.
The GiftTrade frontend repository serves as the main repo for the giftxtrade.com web app. This repo is designed to be able to run with a fully working API (giftxtradeapi.com) and makes use of Redux for state management.
git clone [email protected]:giftxtrade/frontend.git
npm install
GiftTrade uses environment variables to help speed up development time and to make sure both development and production code are similar with little to no tweaks. Therefore, we define these variables to ensure this behavior.
Ensure that you create a file named .env.local
within the root of the project.
Add the following to the .env.local
file:
NEXT_PUBLIC_API_BASE=http://localhost:8080/
NEXT_PUBLIC_BASE=http://localhost:3000/
NEXT_PUBLIC_GOOGLE_CLIENT_ID=547624899217-qgp0rt4mm2chev60iht9r2n2acrt94f4.apps.googleusercontent.com
Ensure that the API server is running and is taken care of. Then start the frontend devolvement server
npm run dev
This will start a server on port 3000
and will listen to all changes made to the files and update/refresh automatically.