React frontend for LiveNUS forum. Designed to be deployed with LiveNUS Server.
Ensure LiveNUS Server is already deployed. The frontend cannot function without its backend.
To get the React frontend running locally:
- Clone this repo.
- Copy example environment file
cp .env.example .env
- Edit the api server environment variable in
.env
. yarn install
to install all required dependencies.yarn start
to run the app in development mode.- Open http://localhost:3000 to view it in the browser.
The sits is deployed live at https://live-nus.netlify.app/
This is the main file structure
.
├── node_modules
├── public
├── src
├── .env
├── README.md
├── tsconfig.json
├── package.json
├── .eslintrc.js
├── .prettierrc.js
└── yarn.lock
Main directories/files to note:
src
includes LiveNUS frontend source code..env
contains environment variables, for example, the api server address..eslintrc.js
contains the configuration for ESLint..prettierrc.js
contains the configuration for Prettier.
Page | URI Pattern | Detail |
---|---|---|
Index | / | Landing page, lists all topics |
New topic | /new | Form to create a new topic |
Single topic | /topic/:id | Single topic view with comments, vote and like buttons. Edit and delete button will be shown for own topic/comment |
Categories | /categories | Shows all categories in card format |
Single category | /categories/:id | Single category view, lists all posts from that category |
About | /about | About page, contains a short paragraph about the forum |
Login | /login | Landing page, lists all posts |
Sign up | /signup | Landing page, lists all posts |
If you run into any issues, please open a new issue on the github repository
This project was built upon Sample React App. This project uses MUI, ESLint, Prettier.