codeday-labs-2021 / bookworms Goto Github PK
View Code? Open in Web Editor NEW: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/
: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/
Homepage feed is currently not in a reverse chronological order (FIFO rather than LIFO)
Feel free to make it more beautiful. ๐
If you don't want to write all the css by yourself, one way is to use component libraries like material-ui, bootstrap or semantic.
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)
Story link: https://github.com/codeday-labs/bookworms/projects/1#card-64509226
We are going to use REST API as our API standard in this project. Please do the follow tasks to design and develop APIs for book review creation:
server
folderCard link: https://github.com/codeday-labs/bookworms/projects/1#card-64509461
In this view, an user can view all the book reviews.
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.
https://github.com/codeday-labs/bookworms/projects/1#card-65218978
https://github.com/codeday-labs/bookworms/projects/1#card-65219014
It is recommended to use JWT standard as it is reliable and easy to implement.
Likes button is not independent from review to review yet :(
As long as #2 completes, it is time to integrate backend APIs with frontend, one endpoint to integrate:
More details here: https://github.com/codeday-labs/bookworms/blob/main/server/docs/api.md
This issue happens when deployed to github pages.
Steps to reproduce
Add Review
buttonhttps://codeday-labs.github.io/create
Expected result
https://codeday-labs.github.io/bookworms/create
insteadA declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.