This project was bootstrapped with Create React App with a Node.js server proxy.
- Node: any version starting with 8.4.0 or greater
- run
node --version
to check current node version - If you need to upgrade or install NodeJs : suggest to install via Node Version Manager NVM
- A clone or download of this repo on your local machine
cd ticketViewer
to go into the project rootnpm install
to install the npm dependencies
npm run dev
to start- open
http://localhost:3000/
to view the site in the browser
- make sure to run
npm run dev
first and keep the server running npm run test-e2e
to lauch the test
I want to make it possible to run one command and then run the React app and an Express server at the same time. This implementation was referenced to Set up a React app with a Node.js server proxy .
All config variables are stored in server/config.json
file. It should be added to .gitignore
because we don't want to share username and password. However, for demo purpose, I have created a trial account which only lasts for 14 days. So to make installation easier, I haven't git ignore the config.json file.
Other references:
- Make HTTP Requests in Node.js
- React Router
- React Router params
- React Router V4 How to go back
- How to parse query string
- query-string
- react-table server side data
- React-table
- React modifies query string without reloading
I use Cypress for end-to-end tests.