- Hack News web app
Base requirements
- Can submit topic, ordered by rating
- Encourage the users to submit their own talks,if there's no lighting talk yet.
- Can vote ,and rerender talk list.
- Uses can submit new lighting talks anytime.
- System should also save the submit time and user.
Advanced
- Responsive
- Validation (Both frontend and backend)
- Error Handing
- Authentication (JWT Base)
- Logging (AWS logging strategy)
yarn install
yarn serve
User MySQL 8+
-- create database
CREATE DATABASE hack_news;
CREATE user 'hack_news_admin'@'%' identified BY 'hack_news2022';
GRANT ALL ON hack_news.* TO 'hack_news_admin'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;
cd ./backend
./init_db.sh
cd ./backend
go mod tidy -compat=1.17
go run main.go
cd ./backend
./run_test.sh
# the coverage report will output under ./coverage