DEV Community

Abdulrahman Sakah
Abdulrahman Sakah

Posted on

Devlog #2: Small update

This is a short post about the improvements i made working on building my own CMS.

1. Added everything to one project

So before the admin panel and the blog was divided into two separate projects but now I have integrated both of them into one project so that now everything is tidier than before.

Now the project structure looks as so

.
├── cron jobs
├── debug
│   └── debug.log
├── index.js
├── node_modules
│   └── ...
├── package.json
├── package-lock.json
├── public
│   ├── css
│   │   └── ...
│   ├── fonts
│   │   └── ...
│   ├── images
│   │   └── ...
│   └── js
│       └── ...
├── README.md
├── routes
│   ├── blog.js
│   └── dashboard.js
├── src
│   ├── blogHandler.js
│   ├── getPosts.js
│   └── validateUser.js
└── views
    ├── admin
    │   ├── addons
    │   │   └── ...
    │   └── pages
    │       └── ...
    └── blog
        ├── addons
        │   └── ...
        └── pages
            └── ...
Enter fullscreen mode Exit fullscreen mode

You can see now that there is a index.js file in the root folder and that is the server file and then in the index.js routes are defined for the blog and the admin panel where you can access the admin panel by going to abodsakka.xyz/login now instead of admin.abodsakka.xyz before.

2. started adding stats to the dashboard

Dashboard of admin panel

As you can see now the dashboard has the amounts of posts that are posted and I am working on adding more stats but trying to figure out what to add and to integrate google analytics with the application.

Another thing you can see is a preview of how the user's profile picture would look like.

3. stability

In this update, I also worked a lot on improving stability were implemented a system to catch all errors and save them so that they are not only in the terminal and it displays the time that error was caught on so that debugging could be much easier.

Top comments (0)