Built with:
- Sign Up
- Sign In
- Surveys CRUD
- Survey Questions CRUD
- Clone the repository
git clone https://github.com/njugunamwangi/laravel-survey.git
- On the root of the directory, copy and paste .env.example onto .env and configure the database accordingly
- Install composer dependancies bu running composer install
composer install
- Install npm dependacies
npm install
- Navigate to the react folder
cd react
- In the react folder, copy and paste .env.example onto .env
- Install npm dependacies
npm install
- Navigate back to the root directory of the folder then migrate the database
php artisan migrate
- Generate laravel application key using (on the root directory)
php artisan key:generate
- Run laravel application using (root directory)
php artisan serve
- Run react application using (react directory)
npm run dev
Navigate to https://localhost:3000 for the react app. Enjoy