GithubHelp home page GithubHelp logo

silverlovesl / test-fullstack Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wiredcraft/test-fullstack

0.0 0.0 0.0 209 KB

Go 47.19% Shell 0.90% SCSS 5.40% TypeScript 43.97% HTML 0.42% JavaScript 2.12%

test-fullstack's Introduction

Summary

  • Hack News web app

Todo

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)

About Frontend

Install dependancy and start serve

yarn install
yarn serve

About Backend

DB init

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;

Table schema and import seed data

cd ./backend
./init_db.sh

Install dependancy and start serve

cd ./backend
go mod tidy -compat=1.17
go run main.go

Test

cd ./backend
./run_test.sh

# the coverage report will output under ./coverage

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.