React application for tracking GPC purchase requests in Sharepoint. This project was bootstrapped with Create React App.
git clone https://github.com/mcleanra/purchaseCard
cd purchaseCard
yarn
yarn proxy
(and enter credentials for soceur.sharepoint.com)- CTRL+C to exit once the proxy starts
npm run dev
In the project directory, you can run:
Starts the sp-rest-proxy. Run this first so you can set up your credentials - point it to https://soceur.sharepoint.com/gpc
Start the proxy and open the app in development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
- Copy all files from /build to a site in SharePoint at
/app/gpc
- Create the ccRequestTracker and ccUsers lists to mirror what is in SPO.
- Copy all files from /src/legacy to the
/app/gpc
site. This app uses thecc_user_*.aspx
pages.
If Sharepoint complains, you can skip copying the .json
files that are in /build.