Skip to content

giftxtrade/frontend

Repository files navigation

GiftTrade Logo

The platform that aims to simplify your online gift exchange and secret santa for free.


Description

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.

Set up

Clone repository

git clone git@github.com:giftxtrade/frontend.git

Install dependencies

npm install

Define environment variables

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.

Step 1: Create .env.local file

Ensure that you create a file named .env.local within the root of the project.

Step 2: Populate file

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

Run with developement mode

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.