This repository contains the frontend for the CodeSupport Website. The project is written in JavaScript using the React user interface library.
- React
- React DOM
- React Router DOM
- React Scripts
- React Helmet
- React Font Awesome
- Font Awesome SVG Core
- Free Brands SVG Icons
- Axios
- Query String
- Navigate into the repository on your computer and run
npm i
- Start the React app with
npm start
- Navigate to http://localhost:3000 in your browser
Want an easier setup? Pull down our website development environment and quickly start working.
We're using Atomic Design to keep our folders organised. There are three main folders:
- Our tests live inside
__tests__/
- Our components live inside
components/
- Our services live inside
services/
- Our styling lives inside
css/
Please name files (which aren't components) with their type in, for example GitHubService
or UserProfileServiceTest
. This helps make the file names more readable in your editor.
We are using Jest with Enzyme for our tests. Any code that manipulates the state or fetches data from an API must be tested.
- To start the React app use
npm start
- To test the React app use
npm test
- Use
npm test -- --coverage
to get a coverage report
- Use
Any Questions? Feel free to mention @LamboCreeper#6510 in the CodeSupport Discord.