DSP2017, DSP2017 Project

I survived! The ‘GetNoticed’ competition is over!

This is the 20th and the last post in the GetNoticed! competition. So it means that… I DID IT! I survived till the very end, I managed to create 20 posts in 10 weeks. ReMaster is still alive (it could be fed better but let’s leave this subject :P). It’s time to celebrate, I mean, have some sleep ?.

What I’m proud of?

I have a blog! One year ago I was sure that my programming life is boring and even the problems I encounter while coding are too boring to write about them. And I believed that there is everything already written so what’s the point in writing the 100th ASP.Net tutorial?
Now I don’t know which subject from my long TODO list should I choose first!
I also fear less about pushing my code to github PR. I know that my style of coding is far from perfection ? and my code tends to be messy ? so that’s a huge step! I think I can even say that breaking this barrier in my head is the greatest outcome of the competition!

Continue Reading

DSP2017, DSP2017 Project

What’s up, ReMaster?

A few days ago the Polish companies data provider published a new version of its API. I found out about it accidentally and decided to spend a moment to upgrade API used in ReMaster. Hopefully, from my perspective, it doesn’t change anything crucial so I will not have to change any logic concerning companies import (and that’s a real blessing considering the fact that testing imports lasts ages and I hate waiting for a result). Continue Reading

DSP2017, DSP2017 Project

How I fell in love with Elasticsearch and hated Java even more than before

This week I spent some time with ElasticSearch. I thought it would be nice to get a little know-how in case a companies table in my pet project’s database grows up so much that searching for a data will last forever. Well, considering the fact that one of the two most important features in my project is searching, I can’t believe I didn’t think about it earlier!

A few possibilities

There is a few search engines I could use. I was considering a Lucene (but it’s so old… I remember using it about 6 years ago!), Solr (I heard it’s the fastest one) and ElasticSearch (some says it’s aimed for bigger projects). So I decided on ElasticSearch… my project is gonna be huge, right? 😛 Continue Reading

DSP2017, DSP2017 Project

Victories and defeats of the last week

Recently I have quite tough time coding. Anything I touched, throws exception with messages that even google wasn’t eager to answer. Since I started developing my pet project ReMaster, it became a rule. I don’t know if it’s because of my rather small knowledge of the .net core or just the fact that I work on the ReMaster usually late in the night and I’m half asleep by the time. But never mind and let’s focus on my last problems and solutions.

Continue Reading

DSP2017, DSP2017 Project

EF Migrations in VS 2017 – Guess why I was postponing migration of ReMaster to Visual Studio 2017 for so long?

Last week, everybody was talking about the final release of Visual Studio 2017. I have to admit, I was excited too so of course I installed it! At the beginning, everything seemed to be just fine. Nothing forecasted a few hours of google’ing to solve the problems that occurred later.

When I installed VS2017, I have to do some of the strange tricks described in my previous post. There were errors claiming that my  project lacks some Nuget package, which was of course installed but I knew the solutions so that was cool, really. In the end, adding migration started to work so I felt some kind of relief.

tl;dr

But the problem came back when I wanted to fire the Update-Database command. I received the following error: 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