Other way to start the project
- App must be developed in React (no version has been requested, the latest available will be used:
18.2.0) - App must be able to perform
GETandPOSTrequests on given endpoints; - App must provide a form in order to perform new user creation.
To start this project, you have to follow these steps:
To clone the repo, open a shell and type:
git clone https://github.com/CodeOne91/form-app.git`or
git clone git@github.com:CodeOne91/form-app.gitcd form-appnpm installTo make the project fully workable, you have to set environment variables doing the following:
- create a .env file in project root folder;
- put your authorization token taken from https://gorest.co.in/
$ echo REACT_APP_GOREST_AUTHORIZATION_TOKEN = "YOUR_TOKEN" >> .envThis set is important for use POST request.
npm startSet .env file. ( Set environment variable)
If you want to have a plug&play environment, you can easily start the project using docker.
cd docker
docker-compose up