Przejdź do głównej zawartości

Posty

Wyświetlanie postów z czerwiec, 2017

MongoDB for C# developers - Lesson 1

Today I'll show you what I lerned at Mongo University online course for C# developers after first lesson and passing all homework. I'll show you how you can: - install MongoDB on Windows workstation - switch between databases - display all elements from a collection - add new document to a collection - restore Mongo database from a dump folder. Get MongoDB installer from MongoDB download center: https://www.mongodb.com/download-center After installation of 64 bit version go to C:\Program Files\MongoDB\Server\3.4\bin. You should see there 2 files: -mongo - this is a console application, you can think of it as a client application -mongod - this is a server of database At this point it's useful to add 'C:\Program Files\MongoDB\Server\3.4\bin' to PATH environment variable. Now open the command line and go to C drive. Create the folder by using command: mkdir data\db And now run the server: mondog Important: If you forget adding the data\db fold

Up and running with Laravel

Today I'll show you how to start working with Laravel - a modern PHP framework. After reading this article you'll be able to: - Install XAMPP - Configure Virtual Hosts on Apache - Create your first application in Laravel - Run the application - Start coding As a first step I encourage you to visit Laravel.com to get some background knowledge about Laravel. Laravel is a PHP framework which is build on top of the MVC pattern (MVC stands for Model View Controller). You can find general explanation of MVC design pattern with some code examples written in Java here . I assume that you've already installed XAMPP which has version for Linux, Windows and OS X. Personally I'm using Windows in this tutorial but on each operating system it should work similarly. You can get the installer of XAMPP from this page: https://www.apachefriends.org/pl/index.html. When installer prompts you which options you want to install, you need to select Apache and you are free to