Skip to content

Event Promocode API for SafeBoda Software Engineering Challenge

Notifications You must be signed in to change notification settings

Ojsholly/safeboda-promocode

Repository files navigation

Promocode System

Project Description

The project is a virtual wallet system built with Laravel 8 and Google Geocoding API. The features of this project include

  1. Admin Authentication
  2. Generation of promo codes
  3. Management of promo codes

Project Setup

Cloning the GitHub Repository.

Clone the repository to your local machine by running the terminal command below.

git clone https://github.com/Ojsholly/safeboda-promocode

Setup Database

Create your a MySQL database and note down the required connection parameters. (DB Host, Username, Password, Name)

Install Composer Dependencies

Navigate to the project root directory via terminal and run the following command.

composer install

Create a copy of your .env file

Run the following command

cp .env.example .env

This should create an exact copy of the .env.example file. Name the newly created file .env and update it with your local environment variables (database connection info and others).

Generate an app encryption key

php artisan key:generate

Migrate the database

php artisan migrate

Add the required environment variables.

GOOGLE_MAPS_API_KEY

Examples of requests and the response for each endpoint can be found here

License

MIT

About

Event Promocode API for SafeBoda Software Engineering Challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published