Asp.Net Core MVC, DSP2017

How to avoid sending credentials to repo (ASP.Net Core Configuration – part 2 – clickable Secret Manager)

How many times you almost pushed some sensitive data to public repo? I have to admit, it’s one of my nightmares since I heard about crawlers occuping github and searching for credit cards data, API credentials and so on.

But it looks like this problem is over, at least for .Net Core developers. And it is because of one simple tool provided by Microsoft. It’s name is… Continue Reading

DSP2017, DSP2017 Project

Adding xUnit to my .Net Core app – programming at night sucks!

The last two evenings I reserved for coding. The plan was like this – download all the Polish companies, save them in database and make some functionality in ‘admin area’. But of course first things first – unit tests!

I have to admit, most of the code I write doesn’t have tests. It’s not something I’m proud of but life is life, deadline is deadline – but once again – it’s something that really (really – really!) makes me feel ashamed. So, this time I want to make my pet project properly and write as much unit tests as it’s possible. And I’m really curious if I will stick to this idea till the end of ReMaster. Anyway, forgive me if my tests will be bizarre ;).

Stairway to…

I installed xUnit packages. I wrote a test just for the purpose of checking if everything is fine aaaand… Continue Reading

DSP2017, DSP2017 Project

How to get data of all the Polish companies (ReMaster, are you alive?)

Last week I didn’t do much coding. In fact, all I did was playing a little with ReSharper and adding some ‘flesh’ to my app’s skeleton. ReMaster is able to connect to a database now and log errors when they occur. It also has some interfaces that may be useful later (when I start coding the model).

Not a big thing but I wanted to rethink the project structure a few times (basically because I rarely have an opportunity to code a web app from a scratch so it was loads of fun!). And yes, I know there is at least one open source project that provides a starting point for ASP.Net Core MVC. But because it’s my pet project I can do with it whatever I want and if I decide to starve it to death, I will starve it to death, got it?! 😉

But coming back to my app’s topic, you may think about…

How to get all the Polish companies’ data?

All Polish companies are present in a system called CEIDG (in English: Central Registration and Information on Business). It provides a simple API – so far so good. Continue Reading

DSP2017, Tech

ReSharper – all you need is… some shortcuts! – part 1

ReSharper is a great Visual Studio extension but without the knowledge about its keyboard shortcuts and other tricks, it’s completely useless. That’s why (and because of the fact, every ‘Get Noticed!’ participant has a free version of this software – more info here), I decided to write about the most popular features. Of course, it’s not a full list, but you may find some of the below helpful.

Continue Reading