Giter VIP home page Giter VIP logo

sellit's Introduction

Sellit

Sellit is a REST API clone of a popular listing website in Nigeria called jiji.ng

Getting Started

  • Development Requirements
  • Installation
  • Starting Devevelopment Server
  • Documentation
  • Testing

Development Requirements

This application currently runs on Laravel 9.20 and the development requirements to get this application up and running are as follow:

  • PHP 8.1+
  • Sqlite
  • NPM
  • MySQL
  • git
  • Composer

Installation

Step 1: Clone the repository

git clone https://github.com/ayodeleoniosun/sellit.git

Step 2: Switch to the repo folder

cd sellit

Step 3: Install all composer dependencies

composer install

Step 4: Install all npm dependencies

npm install

Step 5: Setup environment variable

  • Copy .env.example to .env i.e cp .env.example .env
  • Update all the variables as needed

Step 6: Generate a new application key

php artisan key:generate

Step 7: Run database migration alongside the seeders

php artisan migrate:fresh --seed

Ensure that your mysql server is up before running the above command

Starting Development Server

After the installation of the packages and running migrations, then, it's time to start the development server.

Development server can be started in three ways:

I recommend using valet or Laravel sail to start the development server to ensure that the application works perfectly across all developers' machines regardless of their operating systems.

Note:

  • If you are using Laravel sail to start your development server, your default database configuration in the .env should be as follow:
  DB_CONNECTION=mysql
  DB_HOST=mysql
  DB_PORT=3306
  DB_DATABASE=your_database_name
  DB_USERNAME=sail
  DB_PASSWORD=password

However, if you want to change the DB username and password after springing forth a docker container using the laravel sail, update the DB_USERNAME and DB_PASSWORD in the .env with the new details and then run this:

./vendor/bin/sail down -v
./vendor/bin/sail build --no-cache
./vendor/bin/sail up -d

Documentation

The Postman API collection is available Here.

Testing

You must have installed Pest in the project before running the test suites. If you haven't, kindly follow the documentation Here.
The application is currently made up of feature tests and only the RESTful endpoints were tested.

The tests can be run using:

./vendor/bin/pest

sellit's People

Contributors

ayodeleoniosun 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.