Skip to content

itsavinash/gsitest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GSITest

This git repository consists of two folders.

The laratest folder contains the laravel and mysql docker-compose config file and the relevant code.

Prerequisite for Laravel & MySQL

Install docker and docker-compose.

  1. git clone
  2. create a .env file copy content from .env.docker and do not make any change

Run the following command in terminal for initially docker build

docker-compose up -d

when docker will finish building the containers, access the "laravel-app" container using following command

docker exec -it laravel_app sh

now you will be inside container

run following commands

  1. composer install && composer update
  2. php artisan cron:refresh-database
  3. php artisan key:gen

Open the following URL in the browser:

https://localhost:8100

API can be tested by importing the file Laratest.postman_collection.json into the Postman.

The reacttest folder contains the Reactjs part of the code.

Prerequisite for Reactjs are Node & npm

  1. Install node version 10+ & npm version 6+
  2. cd reacttest
  3. npm install to install the React packages locally
  4. npm start to run the start the local server.

Open the following URL in the browser:

https://localhost:3000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published