Skip to content

anqichen9856/CarparkApi

Repository files navigation

Carpark Availability Checking System - Backend

Introduction

This is the backend API for a carpark availability checking system. It can be used together with a frontend (see instructions at https://github.com/anqichen9856/CarparkFrontend).

The API supports the following functionalities:

  1. Registration
  • Mandatory fields: First name, Last name, Email, Password
  • Optional fields: Contact number
  1. Login
  • Login using email & password
  • Respond with a JWT token upon successful login
  1. View Member Details
  • Protected API - requires JWT token
  • Returns the member details
  1. Get Carpark Availability

This project is built using .Net Core 3.1 with MySQL.

Instructions for Setting Up

Requirements

Setting Up Steps

  1. Download this project in Zip and decompress it
  2. Start your local MySQL Server
  3. Open the project in Visual Studio by double clicking CarparkApi.sln in the project root directory
  4. In Visual Studio, go to appsettings.json, follow the comments to update the connection string with your local MySQL server password
  5. Open the terminal in the project root directory, and type the following command:
    dotnet ef migrations add InitialCreate
    
  6. Run the project by clicking the Run button at the top left corner of Visual Studio
  7. The API is now running. You can use it with a frontend by following instructions at https://github.com/anqichen9856/CarparkFrontend

If you have any suggestions or feedback, please feel free to contact me at [email protected].

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages