Skip to content

Faner201/Portfolio_You

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Portfolio_You

REST API to create a portfolio, written using the GIN.

API Endpoints:

User interaction.

  • POST /sign-up - New user registration.
  • POST /sign-in - New user authorization.

Portfolio management.

  • POST /portfolio/create - Creating a new portfolio.
  • POST /portfolio/create/menu - Create a brief description of the portfolio.
  • POST /portfolio/open - Viewing the portfolio made.
  • GET /portfolio/menu - Display a list of user-created portfolios.
  • DELETE /portfolio/menu - Deleting a portfolio.

Project structure

portfolio_you
|--- auth
        |--- delivery # Working with handlers.
        |--- repository
                |--- database # Working with database.
                |--- localstorage # Working with localstorage.
                |--- mock # Interface plugs under localstorage
        |--- usecase # Implementation of different business logic.
        |--- error.go # All errors used at the handler level.
        |--- repository.go # Interface repository.
        |--- usecase.go # Interface Use Case.
|--- cmd
        |--- main.go # Initializing configuration files, starting the server.
|--- config
        |--- config.yml # Configuration file of the whole project.
        |--- init.go # Read a configuration file.
|--- models # Main project entities.
|--- portfolios
        |--- .... # Repeats the hierarchy from auth.