This repository contains the LDS Temples API, a comprehensive resource for accessing information about Latter-day Saint (LDS) temples. Designed with efficiency and ease of use in mind, it offers detailed data about each temple, including location, history, and other relevant details.
Comprehensive Temple Data: Access detailed information about each LDS temple. Search and Filter: Easily search for temples by various criteria. Regular Updates: The database is regularly updated with the latest information.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
A simple to do list api to practice creating a .NET Web API. This Repo serves a reference guide for creating .NET APIs.
- Install Docker
- Create a Docker account.
- Run the following command to start a Postgres container.
docker run --name temples_db -p 5432:5432 -e POSTGRES_PASSWORD=Pioneer47 -e POSTGRES_USER=brigham -e POSTGRES_DB=temples_db -d postgres
- Clone the project
git clone https://github.com/Calesi19/FaveFinder.git
- Install the dependencies
dotnet restore
- Run the project
dotnet run
- Open your browser and go to
http://localhost:5000
- Create the image with the code by running the following command:
docker build -t tasktamer .
- Run the docker image by running the command:
docker run -p 8080:8080 -p 8081:8081 tasktamer
- Npgsql.EntityFrameworkCore.PostgreSQL
- Microsoft.EntityFrameworkCore
- Microsoft.EntityFrameworkCore.Design
You can install/remove a package by running the following commands:
# To install a package
dotnet add package <package-name>
# To update a package
dotnet add package <package-name> --version <new-version>
# To remove a package
dotnet remove package <package-name>
Make sure to have the dotnet-ef tool installed.
dotnet tool install --global dotnet-ef
Once a model has been created and added to the DataAccess class, run the following migration commands on the terminal to create the tables in the database.
dotnet ef migrations add <Nameofthemigration>
dotnet ef database update
Replace with a name you'd like to give your migration. Don't use spaces.
To create a .NET Web API, you need to have the .NET Core SDK installed on your machine.
You can run the following command to bootstrap a new .NET Web API project.
dotnet new webapi -n Temples
To create a sln file, run the following command:
dotnet new sln
To add a project to the solution, run the following command:
dotnet sln something.sln add something/something.csproj
Swagger is a great tool to document your API and will come pre-installed with the project. To access the Swagger UI, run the project and go to /swagger/index.html
page when you start your API.