Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/custer-debug/servergolang

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/custer-debug/servergolang

  • v0.0.0-20201130220529-8b9a724d6b9b
  • Source
  • Go
  • Socket score

Version published
Created
Source

ServerGolang

####This repository includes a backend and a frontend server.

I use golang as my programming language. For the frontend, I used bootstrap. It is not in this repository, but you can download it from the link bootstrap Also, to test this API, you need to install some packages. Before installing fiber , I advise you to read the documentation.

go get -u github.com/gofiber/fiber/v2

This is the link to work with the database, and the link to install MySql for Golang:

go get -u github.com/go-sql-driver/mysql

Communication is established using XHR-requests

####At the moment, this project has completed:

  1. Login page. The problem of different directory transitions was solved with the help of Cookies. Here cookies are a json string like this:

     {
     ID: int
     FirstName: string
     LastName: string
     }
    

    ID makes it easy to navigate the database. First and last name for detailed user identification. When you go to any other page of the site without authorization, the script will return to the login page. If there is a response from the backend that the password is incorrect, then a red notification appears, and you need to try again.

  2. Sign Up Page. There is a link under the submit button that leads to the registration form. When filling in all the fields, a request sent with the addition of the user to the database. If all the data is correct, then the user moved to the login page.

  3. Welcome Page. If authentication is successful, the user redirected to the welcome page.

    In fact, I do not know yet what exactly the site will be directed to, so I just made a greeting like: Hello, FirstName LastName.

    All pages use templates.

  4. The navigation bar has:
    4.1 Packy Site logo
    4.2 Dropdown menu, in which there are two cells, but this is still in development.
    There are two buttons in the right corner:
    4.3 Settings (Read on about this)
    4.4 Log out This button is responsible for logging out and logging off the session. By clicking on this button, the cookies cleared, and the user returned to the login page.

  5. Settings. There are three tabs here:
    5.1 ProfileHere the user can edit his data. Namely, the data that is in the database: Name and surname, date of birth, phone number, login. Upon successful editing, a positive response comes from the server
    5.2 PrivateHere the user can change the password. The request will not be sent until the user enters the correct data, namely the old password and the new password twice
    5.3 Sites This section is still under construction.

FAQs

Package last updated on 09 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc