Skip to content

My Implementation of the project built in the Linkedin Learning course

Notifications You must be signed in to change notification settings

OmarTahoun/Go-for-Web-Development

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

My Implementation of the project built in the Linkedin Learning course Go for Web Development

This application is digital library application.

Hello

  • first route:

    • Write the main method
    • Create the first route
    • Running the application
  • templates:

    • Be able to render a template
    • Access query parameters
    • Dynamically display query parameters
  • Database connection:

    • Setup a database for development
    • create database connection on the server
    • Display connection status using template

Collecting books

  • talking to the server:

    • Create simple search UI
    • Return data from server
    • Dynamically Present data to the user
  • surfing the net:

    • Query data from calssify2 API
    • Decode the XML response
    • Display the results
  • using database:

    • Add books to database
    • send selected book to server
    • save the selection
  • web middleware:

    • Install web middleware
    • Replace the default server with negrorni
    • Create a database checker middleware

Becoming the librarian

  • Replacing the default template:

    • add a new template engine
    • use the new engine to render the template
    • update the template file
  • Showing off our books:

    • Update the page object
    • Modify Template
    • retrieve books from Database
  • Removing Books:

    • adding a remove button
    • delete selected books from the database
    • update the interface
  • Using gorilla/mux for routing

    • Install gmux
    • replace default router
    • Update routes

A place for everything

  • Using go-grop:

    • Get go-gorp
    • Setup database map
    • Update the sql queries to use map
  • Sortring our books:

    • Adding the sort UI
    • update database query to use sorting
    • remember the latest sort method in sessions
  • Fiction and nonficiton:

    • Add filter UI
    • update queries to filter
    • Remember user filter choice

Different folks, Different libraries

  • Authenticated users only:

    • Design Login template
    • Build Login route
    • Redirect Authenticated users to main page
  • Creating users securely:

    • Get bcrypt package
    • Create user table
    • Store users in database
  • set sessions for users:

    • Add user to session
    • check if a user is logged in
    • add logout
  • Different Library for Different users:

    • Adding a foreign key (the username) to the books table, to associate a book with a user
    • update the Database mapping
    • fetch only books of specific user

About

My Implementation of the project built in the Linkedin Learning course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages