Click here to Skip to main content
Click here to Skip to main content
Technical Blog

Tagged as

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

, 20 Oct 2009 CPOL
Rate this:
Please Sign up or sign in to vote.
Ok, here are the steps to setup the development environment for my new project...

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

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Tom Janssens
Founder Core bvba
Belgium Belgium
Tom Janssens, owner of Core, a software and consultancy company.
Father of two sons named Quinten & Matisse, and married to a beautiful woman named Liesbeth.
 
Blog: http://tojans.me
Github: http://github.com/ToJans
Twitter: http://twitter.com/ToJans
LinkedIn: http://www.linkedin.com/in/tomjanssens

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.1411023.1 | Last Updated 21 Oct 2009
Article Copyright 2009 by Tom Janssens
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid