Code Monkey home page Code Monkey logo

sample-portfolio's Introduction

Screenshot 2021-10-30 at 21-29-21 Bilal Khan

Intro

This repository contains the code of my portfolio website. It contains five pages that are Home, About, Resume, Portfolio, and Contact. The template of this app is taken from bootstrapmademe.com that is available for free to use.


App Structure

This software is written in Golang, HTML, CSS, and JavaScript. The directory structure is based on MVC model. The software contains six directories in which Go code, Database, and website template is written separately. These directories are.

  • controllers: This directory contains one file controllers.go. This file handles the main functionality of different functions like executing the template, sending an email using SMTP.

  • database: This directory contains one file db.go. This file contains the code of a MySQL database that will connect, and insert the data.

  • middleware: This directory has one file middleware.go. It handles the errors in a function and it works on a function to call the values from .env file based on a key.

  • models: This directory has one file models.go. It contains a structure which has the name, email, subject and body to be used.

  • routes: This directory has one file routes.go. It handles the paths that should be visited and uses middleware to check for errors.

  • views: This directory contains two subdirectories templates and static. The first subdirectory contains all the HTML files. The second subdirectory contains all the CSS files, JavaScript and images also.


Files

  • .gitignore: It contains all the files that should be ignored.
  • Procfile: This file is used to deploy an app on heroku server.
  • main.go: It calls the routes and use a port to run an app.

Author Info

Back to Top

sample-portfolio's People

Contributors

ibilalkayy avatar

Stargazers

Samsor Rahman avatar Roman avatar

Watchers

 avatar  avatar

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.