Introduction
I would like to show you how to prepare your local environment, which can be used to work with test automation. Repository I forked can be found here:
https://github.com/gothinkster/realworldAI-Powered User Story Analysis for Smarter Testing
Unlock the full potential of your software development process with our AI-driven tool! Learn more on DefectZero — AI user story analysis.
Backend
https://github.com/12masta/aspnetcore-realworld-example-appTo prepare environment you need a Git tool. How to install Git?
https://git-scm.com/book/en/v1/Getting-StartedBesides Git you need the Docker:
https://docs.docker.com/get-started/When we have Git, we need to execute following command in terminal in our local directory:
git clone https://github.com/12masta/aspnetcore-realworld-example-app.gitSwitch to downloaded directory by:
cd aspnetcore-realworld-example-appWhen you have Docker, go to directory which was created after git clone command execution. Now in terminal execute command:
make buildAnd then:
make runAfter those steps under URL
http://localhost:5000/swaggerYou should have access to API documentation. This part is finished, now it’s time for front.
Frontend
https://github.com/12masta/react-redux-realworld-example-appTo be able to build project frontend, you need a nmp tool which can be installed along with node.js. How to install?
https://www.npmjs.com/get-npmWhen you will have npm, open a terminal and execute command in directory in which you would like to create a project:
git clone https://github.com/12masta/react-redux-realworld-example-app.gitSwitch directory by typing:
cd react-redux-realworld-example-appNow execute to install all required dependencies
npm installAnd then run our local server
npm startAssemble all together
Remember, to ensure the application works correctly, after command
npm startIt is required also to start backend part. That means from level of directory cloned by git, we need to execute command:
make runFor any reason you need to change backend URL address, here’s a file which you need to edit:
src/agent.jsAnd variable to adjust:
API_ROOTFor example:
http://localhost:3000