https://github.com/hougesen/portfolio-razor
Basic replica of my portfolio (https://mhouge.dk) made using C# Razor.
https://github.com/hougesen/portfolio-razor
csharp github portfolio
Last synced: about 2 months ago
JSON representation
Basic replica of my portfolio (https://mhouge.dk) made using C# Razor.
- Host: GitHub
- URL: https://github.com/hougesen/portfolio-razor
- Owner: hougesen
- License: mit
- Created: 2021-10-05T21:28:25.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-02T12:51:02.000Z (over 4 years ago)
- Last Synced: 2025-02-24T08:09:57.167Z (over 1 year ago)
- Topics: csharp, github, portfolio
- Language: C#
- Homepage: https://mhouge.dk
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# portfolio-razor
Replica of my [portfolio](https://github.com/hougesen/portfolio) made using C# Razor.
The website can be seen [here](https://hougesen-portfolio-sbr4o.ondigitalocean.app/).
This website automatically fetches data from my [Github](https://github.com/hougesen) using the Github GraphQL API.
Feel free to use it as a template if you wish.
## Fetching Github user information
To fetch Github user information you have to create a Github personal access token (only public permisssions needed).
```js
const query = gql`
query GET_PROJECTS {
user(login: `${YOUR_GITHUB_HANDLE}`) {
name
login
bio
avatarUrl
company
location
twitterUsername
pinnedItems(first: 6) {
nodes {
... on Repository {
name
description
homepageUrl
url
languages(first: 3, orderBy: {field: SIZE, direction: DESC}) {
nodes {
name
color
}
}
}
}
}
}
}
`;
```