Table of Contents
Frontend element for Singapore Sports School's Corporate Pass Application. Built in React and depends on its accompanying REST API.
- Recommended platform
- Development: macOS Monterey (Intel)
- Production: Linux (Ubuntu 16.04)
- Nodejs 14.x, 16.x, 18.x (v18.9.1 preferred)
- Accompanying npm (v8.19.2 preferred)
This application can be run in both development
and production
modes
Clone this repository or download to files to local directory. Open a terminal session and navigate to this application root (.../wanderlust
)
cd /path/to/wanderlust
This frontend application relies on the accompanying backend server for computation logic and data. We need to provide it the following information. Edit the backend server URL in .env.example
using any text editor (vi .env.example
).
- Replace
<>
fields with the respective information - Rename
.env.example
to.env
Note: .env
is automatically ignored by git`
REACT_APP_EMAIL_CHECKING
acts as a feature flag to verify that the email has a valid Singapore Sports School subdomain. It is set to false
by default for development.
npm install
- Create a production build
npm run build
- Install serve
npm install -g serve
- Run the production build
serve -s build
Run the application in development mode
npm run start