Giter Site home page Giter Site logo

utspbfhusni's Introduction

RESTful API for UTS

This repository contains a RESTful API project for the Ujian Tengah Semester (UTS) assignment.

Installation

Prerequisites

  • PHP (recommended version 7.4 or higher)
  • Composer
  • MySQL or any other database supported by Laravel
  • Laravel Valet, Laravel Homestead, or any other local development environment (optional)

Installation Steps

  1. Navigate to the Project Directory:

    cd utspbfhusni
  2. Install Dependencies:

    composer install
  3. Environment Configuration:

    • Create a copy of the .env.example file and name it .env:

      cp .env.example .env
    • Configure your database connection in the .env file:

      DB_CONNECTION=mysql
      DB_HOST=127.0.0.1
      DB_PORT=3306
      DB_DATABASE=your_database_name
      DB_USERNAME=your_database_username
      DB_PASSWORD=your_database_password
  4. Generate Application Key:

    php artisan key:generate
  5. Database Migration:

    php artisan migrate
  6. Serve the Application:

    php artisan serve

    By default, the application will be served at http://localhost:8000.

Features

  • Authentication: Users can register, log in, log out, and refresh their authentication tokens.
  • User Management: CRUD operations for users, including viewing, creating, updating, and deleting users.
  • Product Management: CRUD operations for products, including viewing, creating, updating, and deleting products.
  • Category Management: CRUD operations for product categories, including viewing, creating, updating, and deleting categories.

Additional Steps

  • Optional: If you want to test the API endpoints, you can import the provided Postman collection (utshusni.postman_collection.json) into your Postman application.

Now, your Laravel project should be up and running locally. You can access it through your web browser or test the API endpoints using a tool like Postman.

If you encounter any issues during the installation process, refer to the Laravel documentation or feel free to ask for further assistance!

utspbfhusni's People

Contributors

itshusni29 avatar

Watchers

 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.