Giter Site home page Giter Site logo

codeday-labs-2021 / bookworms Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 5.0 2.94 MB

:book: :bug: bookworms is a CodeDay Labs project to create a web app to share your ideas of a book with others.

Home Page: https://codeday-labs.github.io/bookworms/

HTML 5.90% Go 36.73% JavaScript 51.27% CSS 6.10%
golang javascript reactjs vercel

bookworms's People

Contributors

auvx13 avatar jeromewu avatar veritem avatar

Stargazers

 avatar

Watchers

 avatar  avatar

bookworms's Issues

Categories API

codeday-project-wireframe-list

On the right hand side of the review list view, there is a category filter to filter for certain categories, as our categories is defined by the user at the moment, we need an API to get a list of user defined categories to allow user to filter based on available categories.

Bootstrap frontend code in `client` folder

Right now in client folder, only an index.html is there for testing. As our plan is to use react.js to develop our frontend, it is common practice to use create-react-app to bootstrap your project first.

If it is done correctly. a package.json file should be inside client folder (ex. client/package.json)

Defer after error handling

There was a mistake for the place of calling defer func.

Take this one as an example:

	DB, err := db.DB()

	defer func() {
		if err := DB.Client().Disconnect(db.Ctx); err != nil {
			panic(err)
		}
	}()

	if err != nil {
		return nil, err
	}

As DB becomes nil when there is an error, this will cause a panic (nil pointer dereference) in defer func and it is not an expected behavior, so the defer should go after error handling:

	DB, err := db.DB()

	if err != nil {
		return nil, err
	}

        defer func() {
		if err := DB.Client().Disconnect(db.Ctx); err != nil {
			panic(err)
		}
	}()

I must be confused with other cases, and hope this correction can help you in the future.

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.