This repository contains the code for NUS Students' Sports Club Website.
Install Node.js by going to the following website and download the LTS version.
After installing Node.js, check that everything has been installed correctly, open the terminal application and type in the following:
node -v
If you see it return the version number 16.14.0
, all is well.
- Download the repository
- Unzip the file in your desired location
- Download git for mac or windows and install it
- Create a github account
- Navigate to the folder on where you want to store your computer
- Open Terminal(Mac) or Cmd(windows)
- Type
cd<space>
- Drag the folder into the Terminal
- Press the
enter
key - Type the following into the Terminal
git clone https://github.com/yongchenglow/nus-students-sports-club.git
- Download Visual Studio Code and install it
- Launch Visual Studio Code(VSCode)
- Drag the folder you have just cloned into VSCode
- Install the plugins
- Make the necessary changes
- Find the
source control
tab in VSCode on the toolbar on the left - Stage all the changes by clicking the
+
button on the right hand side of the word changes - You should see the files moved under the Staged Changes tab
- Write a commit message by describing the changes you have made
- Click on
commit to master
- Open Terminal(Mac) or Cmd(windows)
- Type
cd<space>
- Drag the folder into the Terminal
- Press the
enter
key - Run the following commands
npm install
npm start
- By default you should be able to access the website on your localhost http://localhost:3000/
nus-students-sports-club
├── src
│ └─── components
│ ├── 39 (39th MC Webpage)
│ └── home
│ └── pages
│ ├── ifg
│ ├── main
│ ├── nusbiathlon
│ ├── runnus
│ └── sunnus
└── public
├── data
│ ├── 39 (39th MC Webpage)
│ └─── memberClubs
├── elections
├── ifg
├── images
├── main
│ ├── 39
│ ├── 40
│ ├── 41
│ └── current
├── nusbiathlon
├── runnus
└── sunnus
## Testing
Testing in this app is done using Jest, to write test cases you may refer to their [docs](https://jestjs.io/docs/en/getting-started)
In order to run the test, type the following commands in terminal:
npm test
## Acknowledgements
1. This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
## License
[GNU GENERAL PUBLIC LICENSE](./LICENSE)