Giter Club home page Giter Club logo

topaz's Introduction

Topaz

Actions Status

simplyServe

A configurable, easy to maintain personal website

Live example: https://naresh1318.com

After working on a project the last thing I usually think of is updating my personal website. Adding links, images, description and pushing changes to the server every single time I work on something new is kinda boring especially if you are lazy like me. What do we do when we're lazy? we automate things. Thereby giving us time to, idk, complain about our laziness. I designed Topaz to automatically update as much of my website as possible.

Recent updates:

  • Added ability to write and publish blogs
  • Revamped home, project and blog pages

Here's what it can currently do:

  1. Automatically fetch public repos from your github account

simplyServe

Projects from github

  1. Admin page that lets you easily add blogs and publication details

simplyServe

Add blogs and publications details

  1. Choose what gets shown

simplyServe

Manage what gets shown

  1. Ability to modify/write content using markdown

  2. Customize website by editing theme.json file

{
  "name": "Naresh Nagabushan",
  "profile_picture_url": "https://files.naresh1318.com/public/Me/IMG_2831_low.jpg",
  "nav_bar_footer": {
      "github": {
        "link": "https://github.com/Naresh1318",
        "icon": "fa-github"
      },
      "medium": {
        "link": "https://medium.com/@rnaresh.n",
        "icon": "fa-medium"
      },
      "linkedin": {
        "link": "https://www.linkedin.com/in/naresh-nagabushan-2946b013a",
        "icon": "fa-linkedin"
      },
      "twitter": {
        "link": "https://twitter.com/Naresh_Reddy_",
        "icon": "fa-twitter"
      }
  }
}
  1. Mobile friendly (currently working on this)

simplyServe

Mobile friendly

Here are the things that I'm still working on:

  • Ability to publish and write blogs using markdown

Install

Super easy as always. Clone before you start!

  1. Edit data/theme.json file to reflect what you want. Here's another example:
{
  "name": "Naresh Nagabushan",
  "profile_picture_url": "https://files.naresh1318.com/public/Me/IMG_2831_low.jpg",
  "nav_bar_footer": {
      "github": {
        "link": "https://github.com/Naresh1318",
        "icon": "fa-github"
      },
      "medium": {
        "link": "https://medium.com/@rnaresh.n",
        "icon": "fa-medium"
      },
      "linkedin": {
        "link": "https://www.linkedin.com/in/naresh-nagabushan-2946b013a",
        "icon": "fa-linkedin"
      },
      "twitter": {
        "link": "https://twitter.com/Naresh_Reddy_",
        "icon": "fa-twitter"
      }
  }
}
  1. Generate a github token by visiting this link: https://github.com/settings/tokens and select the repo checkbox. Give it a name if you want and copy the token.

  2. cd into the project root dir and paste the key into a keys.txt file

echo "token <your key>" >> keys.txt

**Note: ** Do not ignore the "token " prefix

  1. Install docker if you don't have it already using this link: https://docs.docker.com/install

  2. Add an admin account

    • Modify Dockerfile under project root:

         ENV USERNAME "<username>"
         ENV PASSWORD "<password>"
  3. Build your image:

    docker build -t <image name>:<tag> .

    Here's how mine looks:

    docker build -t topaz:latest .
  4. Run your image:

    docker run -p <port to forward>:5000 -v absolute path to data dir in project:/app/data/ <image name>:<tag>

    Here's mine:

    docker run -p 4000:5000 -v /home/naresh/Projects/Topaz/data/:/app/data/ topaz:latest
    
  5. Finally, go to localhost:<port forwarded to> on your browser

  6. You can access the login page using localhost:<port forwarded to>/login. Example localhost:4000/login. Login using the username and password you setup earlier.

Note: You could also modify the docker-compose.yml file to install topaz

Concluding thoughts

  1. Feel free to do a pull request if you fix bugs
  2. Email me [email protected] if you have any suggestions!

topaz's People

Contributors

dependabot[bot] avatar diomed avatar im-coder-lg avatar naresh1318 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

topaz's Issues

Revamp admin page

  • Show admin page as a part displayed pages and retain existing functionality

Overlap on mobile chrome

Saw your HN post and took a look. Noticed a slight overlap of elements here:

Screenshot_20190808-220742

Pixel 2
Android 9, build PQ3A...
Chrome 76.0.3809.89

Lovely site!

images in blog

images in blog are too close to the right side.

they could also be in rounded corners, for more aesthetically pleasing effect.

Blogs Readme

Explain the workflow of writing a blog on it.

Medium API only records the first couple of entries

Since we are using a parser rather than the Medium's API, it only fetches your recent articles.
Additionally, that too its constrained by 10 articles.

Possible ways to fix it :

  1. beautifulsoup fetch?
  2. use the actual API as per their documentation. (however, their API is for write only), not sure how you would read from it.

Publishing blogs bug

Publishing a blog before saving it does not publish the blog

  1. Create a new blog
  2. Hit Publish no the editor page without clicking on Save
  3. Says published, but, it is not

Correct link to theme.json

Currently your README just mentions the theme.json, Maybe it would be better if could point people to /data/theme.json rather than just theme.json

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.