Front end for Heroes Hire, a platform for Hero Agency to list Heroes to be viewed by public details : https://vxyagr.gitbook.io/hiroes-heroes-for-hire/
-
Get the code to a directory
-
Make sure you already have npm installed
-
Edit /components/Endpoints.txt File, change :
export const base = "http://localhost:8000/"; change it to your BACKEND base domain and port
export const create = base + "hero/"; this should only be changed to match the backend endpoint address
export const getAll = base + "hero/"; this should only be changed to match the backend endpoint address
export const findOne = base + "hero/"; this should only be changed to match the backend endpoint address
export const findByPower = base + "hero/power/"; this should only be changed to match the backend endpoint address
export const findByAgency = base + "hero/agency/"; this should only be changed to match the backend endpoint address
export const deleteHero = base + "hero/delete/"; this should only be changed to match the backend endpoint address
export const updateHero = base + "hero/update/"; this should only be changed to match the backend endpoint address -
make sure the Backend is already running and ready to serve their API
-
open terminal and go to the directory, run "npm install"
-
still on the terminal, run "npm run dev"
-
Apps (Front End) is ready to serve on the port you set.