Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

Repository files navigation

Invstorly Backend API

A Laravel-based REST API that serves as the backend for the Invstorly Alpha test application. This API handles user authentication, listing management, and file storage.

Requirements

  • PHP >= 8.2
  • Composer
  • MySQL/PostgreSQL database
  • Laravel 11.x

Setup

  1. Clone the repository
git clone <repository-url>
cd backend
  1. Install dependencies
composer install
  1. Environment setup
cp .env.example .env
php artisan key:generate
  1. Configure your database in .env:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=invstorly
DB_USERNAME=your_username
DB_PASSWORD=your_password
  1. Run migrations
php artisan migrate
  1. Start the development server
php artisan serve

API Endpoints

Authentication

  • POST /api/register - Register a new user
  • POST /api/login - User login

Listings

  • GET /api/listings - Get all listings
  • GET /api/listings/{id} - Get a specific listing
  • POST /api/listings - Create a new listing (requires authentication)
  • PUT /api/listings/{id} - Update a listing (requires authentication)
  • DELETE /api/listings/{id} - Delete a listing (requires authentication)

Testing

Run the test suite:

php artisan test

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages