-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 07780cd
Showing
74 changed files
with
5,148 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
name: 🚀 Deploy website on push | ||
jobs: | ||
web-deploy: | ||
name: 🎉 Deploy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🚚 Get latest code | ||
uses: actions/[email protected] | ||
|
||
- name: 📂 Sync files | ||
uses: SamKirkland/[email protected] | ||
with: | ||
server: ${{ secrets.ftp_host }} | ||
username: ${{ secrets.ftp_name }} | ||
password: ${{ secrets.ftp_password }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
|
||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
*.lcov | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# TypeScript v1 declaration files | ||
typings/ | ||
|
||
# TypeScript cache | ||
*.tsbuildinfo | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Microbundle cache | ||
.rpt2_cache/ | ||
.rts2_cache_cjs/ | ||
.rts2_cache_es/ | ||
.rts2_cache_umd/ | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
.env.test | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
|
||
# Next.js build output | ||
.next | ||
|
||
# Nuxt.js build / generate output | ||
.nuxt | ||
dist | ||
|
||
# Gatsby files | ||
.cache/ | ||
# Comment in the public line in if your project uses Gatsby and *not* Next.js | ||
# https://nextjs.org/blog/next-9-1#public-directory-support | ||
# public | ||
|
||
# vuepress build output | ||
.vuepress/dist | ||
|
||
# Serverless directories | ||
.serverless/ | ||
|
||
# FuseBox cache | ||
.fusebox/ | ||
|
||
# DynamoDB Local files | ||
.dynamodb/ | ||
|
||
# TernJS port file | ||
.tern-port |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 Fernando Júnio | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<div align="center" id="top"> | ||
<img src="./.github/readmeBanner.png" alt="Portifolio" /> | ||
|
||
  | ||
|
||
# <a href="https://portifolio-fernando.onrender.com" target="_blank">Site</a> | ||
</div> | ||
|
||
<h1 align="center">Portifolio</h1> | ||
|
||
<p align="center"> | ||
<img alt="Github top language" src="https://img.shields.io/github/languages/top/fernando-juni0/portifolio?color=56BEB8"> | ||
|
||
<img alt="Github language count" src="https://img.shields.io/github/languages/count/fernando-juni0/portifolio?color=56BEB8"> | ||
|
||
<img alt="Repository size" src="https://img.shields.io/github/repo-size/fernando-juni0/portifolio?color=56BEB8"> | ||
|
||
<img alt="License" src="https://img.shields.io/github/license/fernando-juni0/portifolio?color=56BEB8"> | ||
</p> | ||
|
||
|
||
|
||
<p align="center"> | ||
<a href="#dart-about">About</a>   |   | ||
<a href="#rocket-technologies">Technologies</a>   |   | ||
<a href="#white_check_mark-requirements">Requirements</a>   |   | ||
<a href="#checkered_flag-starting">Starting</a>   |   | ||
<a href="#memo-license">License</a>   |   | ||
<a href="https://github.com/fernando-juni0" target="_blank">Author</a> | ||
</p> | ||
|
||
<br> | ||
<hr> | ||
|
||
<h1 align="center">🔖 Status</h1> | ||
<h4 align="center">🚧 Portifolio in Beta.. 🚧</h4> | ||
|
||
<hr> | ||
<br> | ||
|
||
## :dart: About ## | ||
|
||
Hello, this application is a portfolio developed 100% by me (Fernando Júnio), the application aims to show a little of my work, in the application it is possible to find several features in addition to delivering a vision of my person, I hope you like it ♡. | ||
|
||
## :rocket: Technologies ## | ||
|
||
The following tools were used in this project: | ||
|
||
- [Node.js](https://nodejs.org/en/) | ||
- [EJS](https://ejs.co) | ||
- [CSS](https://developer.mozilla.org/pt-BR/docs/Web/CSS) | ||
- [JavaScript](https://developer.mozilla.org/pt-BR/docs/Web/JavaScript) | ||
|
||
## :white_check_mark: Requirements ## | ||
|
||
Before starting :checkered_flag:, you need to have [Git](https://git-scm.com) and [Node](https://nodejs.org/en/) installed. | ||
|
||
## :checkered_flag: Starting ## | ||
|
||
```bash | ||
# Clone this project | ||
$ git clone https://github.com/fernando-juni0/portifolio | ||
|
||
# Access | ||
$ cd portifolio | ||
|
||
# Install dependencies | ||
$ npm install | ||
|
||
# Run the project | ||
$ npm start | ||
|
||
# The server will initialize in the <http://localhost:80> | ||
|
||
#It is possible to change the opening port of the server by creating a .ENV file and adding the following line: PORT='Your Port' | ||
``` | ||
|
||
## :memo: License ## | ||
|
||
This project is under license from MIT. For more details, see the [LICENSE](LICENSE.md) file. | ||
|
||
|
||
Made with :heart: by <a href="https://github.com/fernando-juni0" target="_blank">Fernando Júnio</a> | ||
|
||
  | ||
|
||
<a href="#top">Back to top</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
host: "smtp.gmail.com", | ||
port: 465, | ||
user: '[email protected]', | ||
pass: 'pqufoijdfygqxbmm' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
//-------------importes------------ | ||
const express = require('express') | ||
const fs = require('fs'); | ||
const bodyParser = require('body-parser'); | ||
const session = require('express-session') | ||
const path = require('path'); | ||
const nodemailer = require('nodemailer') | ||
const ejs = require('ejs') | ||
|
||
|
||
//------------Configs-------------- | ||
const app = express(); | ||
|
||
require('dotenv').config() | ||
|
||
|
||
app.use(session({ | ||
secret: process.env.SECRET || '35515153135gses', | ||
resave: false, | ||
saveUninitialized: true, | ||
})) | ||
|
||
|
||
const SMTP_CONFIG = require('./config/smtp'); | ||
const trasporter = nodemailer.createTransport({ | ||
host: SMTP_CONFIG.host, | ||
port: SMTP_CONFIG.port, | ||
service:'gmail', | ||
secure: true, | ||
auth:{ | ||
user: SMTP_CONFIG.user, | ||
pass: SMTP_CONFIG.pass | ||
}, | ||
tls:{ | ||
rejectUnauthorized: false | ||
} | ||
}) | ||
|
||
|
||
|
||
app.use(bodyParser.urlencoded({extended: true})); | ||
app.use(bodyParser.json()) | ||
app.use(express.static('views')); | ||
app.use(express.static('public')); | ||
app.use(express.static('uploads')); | ||
app.use('/uploads', express.static(path.join(__dirname, '/uploads'))); | ||
app.use('/public', express.static(path.join(__dirname, '/public'))); | ||
app.set('views', './views') | ||
app.set('view engine', 'ejs'); | ||
|
||
|
||
|
||
//----------------POST-------------------- | ||
app.post('/contact/menssage', (req,res)=>{ | ||
let data = { | ||
nome: req.body.nome, | ||
email: req.body.email, | ||
mensagem: req.body.message, | ||
lang: req.body.lang, | ||
color: req.body.color | ||
} | ||
|
||
if (data.lang == 'pt-BR') { | ||
trasporter.sendMail({ | ||
|
||
text: 'Olá sua mensagem já foi recebida logo entrarei em contato.', | ||
html:`<b>Olá sua mensagem já foi recebida logo entrarei em contato.</b><br><br><a href="https://fernandojunio.com.br"><button style="padding: 10px; background-color: ${data.color}; color: white; font-weight: bold; outline: none; border: 1px solid #c4c4c488; cursor:pointer;">Ir para o Portfólio</button></a>`, | ||
subject: "Nova Mensagem de Fernando Júnio", | ||
from: "Fernando Júnio <[email protected]>", | ||
to: [data.email,'[email protected]'] | ||
}) | ||
}else if(data.lang == 'en-US'){ | ||
trasporter.sendMail({ | ||
text: 'Hello, your message has been received, I will contact you soon.', | ||
html:`<b>Hello, your message has been received, I will contact you soon.</b><br><br><a href="https://fernandojunio.com.br"><button style="padding: 10px; background-color: ${data.color}; color: white; font-weight: bold; outline: none; border: 1px solid #c4c4c488; cursor:pointer;">Ir para o Portfólio</button></a>`, | ||
subject: "New Message from Fernando Júnio", | ||
from: "Fernando Júnio <[email protected]>", | ||
to: [data.email,'[email protected]'] | ||
}) | ||
} | ||
|
||
trasporter.sendMail({ | ||
text: data.nome +" | "+ data.email +" | "+ data.mensagem, | ||
html: '<b>Nome: </b>' + data.nome +" <br><br> "+ '<b>Email: </b>' +data.email +" <br><br> "+ '<b>Mensagem: </b>' +data.mensagem, | ||
subject: "Nova Mensagem do Portifolio enviada por "+ data.nome, | ||
from: "Fernando Júnio <[email protected]>", | ||
to: ['[email protected]','[email protected]'] | ||
}) | ||
|
||
res.status(200).json({ | ||
success:true | ||
}) | ||
}) | ||
|
||
|
||
//-----------------GET-------------------- | ||
|
||
app.get('/',(req,res)=>{ | ||
res.render('index') | ||
|
||
}) | ||
|
||
app.get('/about',(req, res)=>{ | ||
res.render('about') | ||
}) | ||
|
||
app.get('/skills',(req, res)=>{ | ||
res.render('skills') | ||
}) | ||
|
||
app.get('/work',(req, res)=>{ | ||
res.render('work') | ||
}) | ||
|
||
app.get('/contact',(req, res)=>{ | ||
res.render('contact') | ||
}) | ||
|
||
app.get('/curriculo',(req, res)=>{ | ||
res.render('curriculo') | ||
}) | ||
|
||
app.get('/curriculo/certificados',(req,res)=>{ | ||
res.render('certificados') | ||
}) | ||
|
||
|
||
|
||
|
||
//----------------SERVER------------------- | ||
|
||
const port = process.env.PORT_APP || 3131 | ||
app.listen(port,()=>{ | ||
console.log(`Servidor rodando na porta ${port}` ); | ||
}); |
Oops, something went wrong.