Survey is an innovative platform designed to create, publish, and manage surveys seamlessly. Whether you need to collect feedback, conduct market research, or gauge customer satisfaction, this project offers a streamlined solution to distribute surveys to your target audience.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
-
Easy Survey Creation: Intuitive interface for building custom surveys with various question types.
-
Survey Publishing: Publish surveys and share them via public or private links.
-
Real-time Response Tracking: Monitor survey results as they come in with instant updates.
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
This is an example of how to list things you need to use the software and how to install them.
- npm
npm install npm@latest -g
- Docker(Optional)
If you prefer using Docker, ensure Docker is installed and running on your machine. You can download it from Docker's official website.
-
Clone the repo
git clone https://github.com/NgYiKai/survey-laravel.git
-
Navigate to the project director and copy the
.env.example
file to create your .env filecp .env.example .env
-
Run docker compose
docker compose up
-
Open a shell session inside container
Replace laravel_app with the actual name of your Docker container, if different
docker exec -it laravel_app sh
-
Generate the application key inside container
php artisan key:generate
-
Run the database migrations inside container
php artisan migrate
-
Install dependencies for frontend
Navigate to the
/react
directory and install the required dependencies via npmnpm install
-
Set up your environment variables
Copy the
.env.example
file to create your .env filecp .env.example .env
Update the
.env
file, theVITE_API_BASE_URL=
should point to your server -
Start the development server
npm run dev
-
Clone the repo
git clone https://github.com/NgYiKai/survey-laravel.git
-
Install dependencies for backend
Navigate to the project directory and install the required PHP dependencies via Composer
composer install
-
Set up your environment variables
Copy the
.env.example
file to create your .env filecp .env.example .env
Update the
.env
file with your specific settings, especially your database credentials -
Generate the application key
php artisan key:generate
-
Run the database migrations
php artisan migrate
-
Start the development server
php artisan serve
-
Install dependencies for frontend
Navigate to the
/react
directory and install the required dependencies via npmnpm install
-
Set up your environment variables
Copy the
.env.example
file to create your .env filecp .env.example .env
Update the
.env
file, theVITE_API_BASE_URL=
should point to your server -
Start the development server
npm run dev
Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.
For more examples, please refer to the Documentation
- Improve server side logging
- Improve client side error handling
- Implement view answer page
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Ng Yi Kai - ykng0508@gmail.com
Project Link: https://github.com/NgYiKai/survey-laravel