|
1 | | -[NuGet Gallery](http://nuget.org/) — Where packages are found |
| 1 | +[NuGet Gallery](https://www.nuget.org/) — Where packages are found |
2 | 2 | ======================================================================= |
3 | 3 |
|
4 | | -This is an implementation of the NuGet Gallery and API. This serves as the back-end and community |
5 | | -website for the NuGet client. For information about the NuGet project, visit the [Home repository](https://github.com/nuget/home). |
| 4 | +This project powers [nuget.org](https://www.nuget.org), the home for .NET's open-source ecosystem. For information about NuGet, visit the [Home repository](https://github.com/nuget/home). |
6 | 5 |
|
7 | 6 | This project has adopted the [Microsoft Open Source Code of Conduct ](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments. |
8 | 7 |
|
9 | | -## Build and Run the Gallery in (arbitrary number) easy steps |
| 8 | +## Getting started |
10 | 9 |
|
11 | | -1. Prerequisites: |
12 | | - 1. Visual Studio 2019 - Install the following `Workloads`: |
13 | | - * ASP.NET and web development |
14 | | - * Azure development |
15 | | - 2. PowerShell 4.0 |
16 | | - 3. SQL Server 2016 |
17 | | - * For development purposes connection strings point to `(localdb)\mssqllocaldb`, make sure that the DB engine version 13.0 or greater is being used (check by running `sqllocaldb info mssqllocaldb` in the command line). |
18 | | -2. Clone it! |
19 | | - |
20 | | - ```PS C:\Code> git clone https://github.com/NuGet/NuGetGallery.git``` |
21 | | -3. Build it! |
22 | | - |
23 | | - ``` |
24 | | - PS C:\Code> cd NuGetGallery |
25 | | - PS C:\Code\NuGetGallery> .\build |
26 | | - ``` |
27 | | -4. Set up the website! |
| 10 | +First install prerequisites: |
28 | 11 |
|
29 | | - ```PS C:\Code\NuGetGallery> .\tools\Setup-DevEnvironment.ps1``` |
30 | | - |
31 | | -5. If you would like to configure your gallery instance to use MSA/AAD, please follow the steps listed [here](https://github.com/NuGet/NuGetGallery/wiki/Configuring-MSA-AAD-for-your-on-prem-gallery-instance). |
| 12 | +1. Visual Studio 2019 - Install the following [`Workloads`](https://docs.microsoft.com/visualstudio/install/modify-visual-studio): |
| 13 | + * ASP.NET and web development |
| 14 | + * Azure development |
| 15 | +2. PowerShell 4.0 |
| 16 | +3. SQL Server 2016 (with DB engine version 13.0 or greater) |
32 | 17 |
|
33 | | -6. Ensure the `NugetGallery` project is the StartUp Project and press `F5` to run the site! That's it! |
| 18 | +Now run the NuGet Gallery: |
34 | 19 |
|
35 | | -When working with the gallery, e-mail messages are saved to the file system (under `~/App_Data`). |
36 | | -You can use an SMTP server instead by editing `src\NuGetGallery\Web.Config` and adding a `Gallery.SmtpUri` |
37 | | -setting. Its value should be an SMTP connection string, such as: `smtp://user:password@smtpservername:25`. |
38 | | -You can also turn off e-email confirmations by changing the value of `Gallery.ConfirmEmailAddresses` to `false` |
39 | | -in the `src\NugetGallery\Web.Config` file. |
| 20 | +1. Clone the repository with `git clone https://github.com/NuGet/NuGetGallery.git` |
| 21 | +2. Navigate to `.\NuGetGallery` |
| 22 | +3. Build with `.\build.ps1` |
| 23 | +4. Create the database and enable HTTPS with `.\tools\Setup-DevEnvironment.ps1` |
| 24 | +5. Open `.\NuGetGallery.sln` using Visual Studio |
| 25 | +6. Ensure the `NuGetGallery` project is the StartUp Project and [press `F5` to run the site](https://docs.microsoft.com/visualstudio/get-started/csharp/run-program) |
40 | 26 |
|
41 | | -Visual Studio may modify the `applicationhost.config` file. You can force git to ignore changes to this file |
42 | | -with: |
43 | | -
|
44 | | - git update-index --assume-unchanged .vs/config/applicationhost.config |
45 | | -
|
46 | | -You can undo this with this command: |
47 | | -
|
48 | | - git update-index --no-assume-unchanged .vs/config/applicationhost.config |
49 | | -
|
50 | | -This should help prevent unwanted file commits. |
| 27 | +Refer to [our documentation](./docs/) for information on how to develop the frontend, use AAD, and more. |
51 | 28 |
|
52 | 29 | ## Deploy |
53 | 30 |
|
@@ -94,6 +71,17 @@ This is the Git workflow we're currently using: |
94 | 71 |
|
95 | 72 | Clone and checkout the `dev` branch. |
96 | 73 |
|
| 74 | +Visual Studio may modify the `applicationhost.config` file. You can force git to ignore changes to this file |
| 75 | +with: |
| 76 | + |
| 77 | + git update-index --assume-unchanged .vs/config/applicationhost.config |
| 78 | + |
| 79 | +You can undo this with this command: |
| 80 | + |
| 81 | + git update-index --no-assume-unchanged .vs/config/applicationhost.config |
| 82 | + |
| 83 | +This should help prevent unwanted file commits. |
| 84 | + |
97 | 85 | ### When starting a new feature/unit of work. |
98 | 86 |
|
99 | 87 | 1. __Pull the latest.__ |
@@ -146,3 +134,4 @@ Clone and checkout the `dev` branch. |
146 | 134 |
|
147 | 135 | 6. __Be ready to guide your change through QA, Staging and Prod__ |
148 | 136 | Your change will make its way through the QA, Staging and finally Prod branches as it's deployed to the various environments. Be prepared to fix additional bugs! |
| 137 | + |
0 commit comments