Giter Site home page Giter Site logo

adamrogas / nugetgallery Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nuget/nugetgallery

0.0 2.0 0.0 32.25 MB

A simple ASP.NET MVC implementation of the NuGet back-end gallery and web APIs.

Home Page: http://NuGet.org

License: Apache License 2.0

nugetgallery's Introduction

NuGet Gallery - Where packages are found

This is an implementation of the NuGet Gallery and API. This serves as the back-end and community website for the NuGet client. For information about the NuGet clients, visit http://nuget.codeplex.com/

Build and Run the Gallery in (arbitrary number) easy steps

  1. Prerequisites. Install these if you don't already have them:

  2. Visual Studio 2012

  3. PowerShell 2.0 (comes with Windows 7+)

  4. NuGet

  5. Windows Azure SDK v1.8 or later

  6. (Optional, for unit tests) xUnit for Visual Studio 2012

  7. Clone it!

    git clone [email protected]:NuGet/NuGetGallery.git

  8. Build it! (from PowerShell)

    cd NuGetGallery
    .\Build-Solution.ps1
    
  9. Create the Database!

  10. Open Visual Studio 2012

  11. Open the Package Manager Console window

  12. Open the NuGetGallery.sln solution from the root of this repository. Important: Make sure the Package Manager Console has been opened once before you open the solution. If the solution was already open, open the package manager console and then close and re-open the solution (from the file menu)

  13. Run the following command in the Package Manager Console:

    Update-Database
    
  14. Set up the website in IIS Express!

  15. We highly recommend using IIS Express. Use the Web Platform Installer to install it if you don't have it already (it comes with recent versions of VS and WebMatrix though)

  16. In an ADMIN powershell prompt, run the Scripts\Enable-LocalTestMe.ps1 file. It allows non-admins to host websites at: http://nuget.localtest.me, it configures an IIS Express site at that URL and creates a self-signed SSL certificate. For more information on localtest.me, check out readme.localtest.me

  17. If you're having trouble, go to the Project Properties for the Website project, click on the Web tab and change the URL to localhost:port where port is some port number above 1024.

That's it! You should now be able to press Ctrl-F5 to run the site!

Contribute

If you find a bug with the gallery, please visit the Issue tracker (https://github.com/NuGet/NuGetGallery/issues) and create an issue. If you're feeling generous, please search to see if the issue is already logged before creating a new one.

When creating an issue, clearly explain

  • What you were trying to do.
  • What you expected to happen.
  • What actually happened.
  • Steps to reproduce the problem.

Also include any information you think is relevant to reproducing the problem such as the browser version you used. Does it happen when you switch browsers. And so on.

Submit a patch

Before starting work on an issue, either create an issue or comment on an existing issue to ensure that we're all communicating.

To contribute to the gallery, make sure to create a fork first. Make your changes in the fork following the Git Workflow. When you are done with your changes, send us a pull request.

Copyright and License

Copyright 2011 Outercurve Foundation

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

The Git Workflow

This is the Git workflow we're currently using:

Setting up

  1. Clone and checkout the following branches (to make sure local copies are made): 'dev', 'dev-start'

When starting a new feature/unit of work.

  1. Pull the latest. Begin by pulling to make sure you are up-to-date before creating a branch to do your work This assumes you have no local commits that haven't yet been pushed (i.e., that you were previously up-to-date with origin).

    git checkout dev-start
    git pull dev-start
    
  2. Create a topic branch to do your work. You must work in topic branches, in order to help us keep our features isolated and easily moved between branches. Our policy is to start all topic branches off of the 'dev-start' branch. Branch names should use the following format '[user]-[bugnumber]-[shortdescription]'. If there is no bug yet, create one and assign it to yourself!

    git checkout dev-start
    git checkout -b anurse-123-makesuckless
    
  3. Do your work. Now, do your work using the following highly accurate and efficient algorithm :)

    1. Make changes.

    2. Test your changes (you're practicing TDD, right?)

    3. Add your changes to git's index.

       git add -A
      
    4. Commit your changes.

       git commit -m "<description of work>"
      
    5. if (moreWorkToDo) go to #3.1 else go to #4.

  4. Start a code review. Start a code review by pushing your branch up to GitHub (git push origin anurse-123-makesuckless) and creating a Pull Request from your branch to dev. Wait for at least someone on the team to respond with: ":shipit:" (that's called the "Ship-It Squirrel" and you can put it in your own comments by typing :shipit:).

  5. Merge your changes in to dev. Click the bright green "Merge" button on your pull request! NOTE: DO NOT DELETE THE TOPIC BRANCH!!

    If there isn't a bright green button... well, you'll have to do some more complicated merging:

    git checkout dev
    git pull origin dev
    git merge anurse-123-makesuckless
    ... resolve conflicts ...
    git push origin dev
    
  6. Be ready to guide your change through QA, Staging and Master Your change will make its way through the QA, Staging and finally Master branches as it's deployed to the various environments. Be prepared to fix additional bugs!

NOTE: DO NOT DELETE THE TOPIC BRANCH!!

nugetgallery's People

Contributors

analogrelay avatar half-ogre avatar haacked avatar johnataylor avatar pranavkm avatar jeffhandley avatar osbornm avatar timlovellsmith avatar dotnetjunky avatar davidfowl avatar drakomeep avatar bhuvak avatar ferventcoder avatar saqibs avatar daniel15 avatar daviddesloovere avatar maartenba avatar akoeplinger avatar akoslukacs avatar

Watchers

James Cloos avatar Adam Rogas avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.