w00t : Building a new app from the ground up : setting up the environment

by Tom 19. October 2009 07:34
This is one of the articles in our series; the parts are:
  1. Methodology, technology & tools used
  2. Setting up the environment
  3. First specs and getting started
  4. IOC, database and other stuff; a real framework 

 Happy reading !

Ok, here are the steps to setup the development environment for my new project :

Prerequisites

 

The steps

1. Create a project folder
2. Start Git bash on this folder (right click in windows explorer)
3. Get MSpec : type in git bash :

git clone git://github.com/machine/machine.specifications.git

4. Get Subsonic : type in git bash :

git clone git://github.com/subsonic/SubSonic-3.0.git 

5. Search for Subsonic.Core.csproj and build it
6. Search for Machine.specifications.sln and build it
7. Make a folder Tools in the project folder
8. Make a folder Lib in the project folder
9. Make a folder Source in the project folder
10. In the folder Tools create a file named "CopyDependenciesAndTools.cmd" with the following content:

@echo off
echo.
echo   Copying all tools & dependencies
echo.
copy ..\machine.Specifications\Build\Release\*.dll
copy ..\machine.Specifications\Build\Release\*.exe
copy ..\machine.Specifications\Build\Release\*.dll ..\lib\*.*
copy ..\machine.Specifications\Build\Release\*.dll ..\lib\*.*
copy ..\subsonic-3.0\lib\*.dll ..\lib\*.*
copy ..\subsonic-3.0\subsonic.core\bin\release\*.dll ..\lib\*.*
pause

11. Execute this cmd-file
12. Make another cmd file in the tools-folder : "CleanUp.cmd" with the following content:

@Echo off
echo.
echo   Cleaning up
echo.
dir /ad /b /s ..\bin > folderstodelete.txt
dir /ad /b /s ..\obj >> folderstodelete.txt
dir /ad /b /s ..\build >> folderstodelete.txt
for /f %%i in (folderstodelete.txt) do rd %%i /s /q
pause

13. Execute it
14. Start up Visual studio and create a new ASP.NET MVC 2 application in the src folder (make sure the checkbox create directory for this solution is off)
15. Once the project is created choose File/New project / Windows/Class library, name it "Specs", and make sure you choose the option "Add to solution"
16. Save and close visual studio
17. Execute "Tools\CleanUp.Cmd"

15. Go back to the Git Bash and type (line by line, do not copy and paste this in one block):
git init
git add .
git commit -m "+ Initial commit"


That's all there is to  it; our initial setup. In the next post we'll get started writing specs !!

Bookmark and Share

About Tom

Tom Janssens op LinkedIn

Tom Janssens op twitter

Core bvba RSS

 

Tom Janssens is an independent freelance ICT consultant that has been "into computers" ever since the age of 7.

Typing source code from a book evolved into exploring the limits of coding in procedural, assembly and object-oriented languages.
As he matured in software coding, he started focussing on the problems surrounding software development, and learned that software development is usually about people and interactions first, and about technology second.

Due to his diverse track record he gained insights in a lot of aspects of the software development process. Currently his main focus is on strategic ICT advice, lean product/project development and improving the software development process and architecture.

He avoids ivory-tower-approaches by applying and verifying the applicability of the latest tech buzz in software experiments.

He is also the founder of the following LinkedIn groups:

CQRS Professional
BDD Professional
Asp.Net MVC professional

More info about Tom and his company...


Advertisement

Forget all your SCRUM -, Kanban - and other Agile and Lean certificates

Here is the only true AGILE and LEAN certificate you will ever need:

The Creative Recursive Analysis Process Certificate
(CRAP Certificate for short)

More info can be found at the official CRAP certificate website:
http://bit.ly/CRAPCertificate