Skip to content

In this exciting project, our goal is to develop a highly engaging Web API that showcases the picturesque regions and captivating walks of New Zealand. Leveraging the power of ASP.NET Core, we will create a robust platform allowing clients to seamlessly access and consume this enriching data

Notifications You must be signed in to change notification settings

Hussein-Fouani/NZWALKSAPP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

New Zealand Walks API

Project Logo or Banner Image

Overview

Welcome to the New Zealand Walks API project! This API provides information about the regions and walks in the beautiful landscapes of New Zealand. Whether you're a traveler planning your next adventure or a developer looking to integrate this data into your application, this API has you covered.

Table of Contents

Getting Started

To get started with the New Zealand Walks API, follow the steps outlined in our Installation Guide.

Project Phases

  1. Understanding REST Principles and ASP.NET Core Setup:

    • Learn the basics of REST.
    • Set up your development environment with ASP.NET Core.
  2. Defining Domain and Domain Models:

    • Explore the domain of New Zealand walks.
    • Define clear domain models.
  3. Database Implementation with Entity Framework Core:

    • Configure Entity Framework Core for seamless data management.
  4. Controller Creation and Testing with Swagger UI:

    • Create controllers to handle API requests.
    • Test your API using Swagger UI.
  5. Clean Coding and AutoMapper Integration:

    • Apply clean coding practices.
    • Utilize AutoMapper for object mapping.
  6. CRUD Operations and Repository Pattern Implementation:

    • Implement CRUD operations.
    • Use the Repository Pattern for data management.
  7. Authentication and Authorization with JWT Tokens:

    • Secure your API with JWT tokens.
  8. Advanced Features: Filtering, Sorting, and Pagination:

    • Implement advanced data handling features.
  9. Integration of ASP.NET Core Identity:

    • Manage users and roles using ASP.NET Core Identity.

Features

  • CRUD operations for regions and walks.
  • Authentication and authorization with JWT tokens.
  • Advanced data handling: Filtering, sorting, and pagination.
  • Integration with ASP.NET Core Identity for user management.

Installation

Installation Steps for New Zealand Walks API:

  1. Install Prerequisites:

  2. Create a New API Project:

    • Open a terminal or command prompt.
    • Run the following command to create a new ASP.NET Core API project:
      dotnet new webapi -n NZWalksApi
  3. Navigate to the Project Directory:

    • Change into the newly created project directory:
      cd NZWalksApi
  4. Open the Project in Your IDE:

    • If you're using Visual Studio Code:
      code .
    • If you're using Visual Studio, open the solution file (NZWalksApi.sln).
  5. Configure the Database (if applicable):

    • If your API interacts with a database, configure the database connection in appsettings.json.
    • Run migrations to create the database:
      dotnet ef migrations add InitialCreate
      dotnet ef database update
  6. Run the API Locally:

    • Execute the following command to run the API locally:
      dotnet run
    • The API should be accessible at https://localhost:5001 or http://localhost:5000.
  7. Test the API:

    • Open a web browser or a tool like Postman to test your API endpoints.
    • By default, the API should have a sample endpoint like WeatherForecast.
  8. Explore and Modify:

    • Dive into the code, explore the controllers, and models.
    • Customize the API to represent New Zealand walks.
  9. Documentation and Swagger (Optional):

    • If desired, add Swagger for API documentation.
    • Install the Swagger NuGet package:
      dotnet add package Swashbuckle.AspNetCore
    • Configure Swagger in Startup.cs.
  10. Deploy (Optional):

    • To deploy your API, publish it to a hosting platform like Azure or AWS.

Usage

  • Explore the API endpoints for regions and walks.
  • Test and interact with the API using Swagger UI.
  • Secure your application using JWT tokens.

Contributing

We welcome contributions! To contribute to the New Zealand Walks API, please Contact Me

License

This project is licensed under the MIT License.

About

In this exciting project, our goal is to develop a highly engaging Web API that showcases the picturesque regions and captivating walks of New Zealand. Leveraging the power of ASP.NET Core, we will create a robust platform allowing clients to seamlessly access and consume this enriching data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages