Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/admodev/web-personal
https://github.com/admodev/web-personal
Last synced: about 22 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/admodev/web-personal
- Owner: admodev
- License: mit
- Created: 2020-06-25T00:13:45.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-25T00:43:55.000Z (almost 2 years ago)
- Last Synced: 2023-03-06T02:28:41.621Z (over 1 year ago)
- Language: JavaScript
- Size: 3.47 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ptemplate
[![Dependencies](https://david-dm.org/nethruster/ptemplate.svg)](https://david-dm.org/nethruster/ptemplate) [![DevDependencies](https://david-dm.org/nethruster/ptemplate/dev-status.svg)](https://david-dm.org/nethruster/ptemplate?type=dev)A personal website template that's not a pain in the ass to setup and use.
[Demo](https://ptemplate.nethruster.com)
Example screenshot
![alt text](https://github.com/nethruster/ptemplate/blob/master/src/assets/icons/meta-img.png "Home screenshot")### Requirements
- You need to have `yarn` (**recommended**) or `npm` installed.### Useful commands
#### Yarn
- `yarn` - Install and update dependencies.
- `yarn dev` - Launch local web server with hot compiling. Ideal to work on the project easily.
- `yarn build` - Build the website in production mode to the `dist/` folder.
- `yarn build-gz` - Builds a gzip compressed version of the built app in the dist/ folder.
- `yarn build-render` - Build the website in production mode and pre-render it to the `dist/` folder.
- `yarn pre-render` - Pre-renders the previously built website.#### NPM
- `npm install` - Install and update dependencies.
- `npm run dev` - Launch local web server with hot compiling. Ideal to work on the project easily.
- `npm run build` - Build the website in production mode to the `dist/` folder.
- `npm run build-gz` - Builds a gzip compressed version of the built app in the dist/ folder.
- `npm run build-render` - Build the website in production mode and pre-render it to the `dist/` folder.
- `npm run pre-render` - Pre-renders the perviously built website.## Customization
Note: To apply all of these changes you must rebuild the app.
### If you're not hosting the app at the root of the server
Go to `webpack.config.js` and change the constant `BASE_URL`, be sure it ends with a `/`.
**PRE-RENDER DOESN'T WORK WITH CUSTOM BASE_URL**### Favicons
You can replace them at `src/assets/icons/`.### Avatar
You can replace it at `src/assets/`. If the name or the extension is different to "avatar.svg", you need to modify it in `src/config.js` and `src/assets-imports.js`.### Title
Change the `` tag in `src/index.html`.### Most of the UI (description, work content, contact icons...)
Modify `src/config.js`. You can add, remove or modify its contents.### ReCATPCHA public key
Change it in `src/config.js`.### Translations
Customize them in the `src/assets/lang/` folder. Add a new lang file named by the [IEC_15897](https://en.wikipedia.org/wiki/ISO/IEC_15897) standard, paste contents from your source locale and translate it. To activate a language copy the contents from the source locale to `src/asssets/lang.json`.### Add icons
Add new icon paths with the desired ID in the `src/assets/icons.svg` file.## Usage
Once everything is compiled and built the last step is to serve the contents of the `dist/` folder as static files with your web server of choice and you're done!## Form API
The form of the contact page is sended to the address specified in `src/config.js` as `formUrl`. The request have:
* Method: `POST`
* Header: `Content-Type: "application/json; charset=UTF-8"`
* Body:
```json
{
"name": "Name introduced in the form",
"mail": "Email introduced in the form",
"msg": "Text/Message introduced in the form",
"g-recaptcha-response": "Google's reCAPTCHA v2 response for server-side validation"
}
```
You can implement your own backend, or use any of the compatible backends listed below.### Compatible form backends
* [web-msg-handler](https://github.com/Miguel-Dorta/web-msg-handler)[![Run on Repl.it](https://repl.it/badge/github/nethruster/ptemplate)](https://repl.it/github/nethruster/ptemplate)