-
Notifications
You must be signed in to change notification settings - Fork 3
Getting Started
1) Check for your Node version
$ node -v
If the above command results in an error, download the latest Node version here.
2) Check for your Yarn version
$ yarn -v
If the above command results in an error, download the latest Yarn version here.
3) Clone the repo into your working directory
$ git clone https://github.com/WilliamsStudentsOnline/wso-react.git
or
$ git clone [email protected]:WilliamsStudentsOnline/wso-react.git
4) Install the necessary dependencies
$ yarn
You should be all set! To get started, run
$ yarn start
to launch a development build, which includes Hot Module Reload(HMR), where changes you make will be instantly reflected without having to restart the server. Open http://localhost:3000 to view it in the browser. At this point in time, you shouldn't be able to view any bulletins (or surveys, etc, anything that requires data from the database), because the backend is not set up yet.
Communicating with the Backend
- Set up the backend as per the instructions in the wso-go repository.
- Run the
wso-go
server viamake run-dev
. - Run the React development sever via
yarn start
.
The development server is set to communicate to the backend via a proxy, allowing all HTTP requests can thus be made to /path/to/endpoint
without further settings.
Congratulations, you have it running on your local setup!
Create an issue or inform Garett on Slack. Be sure to pay it forward by editing this page with the steps you took to troubleshoot in order to ensure that new users do not encounter the same issues.