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

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 !!

comments powered by Disqus