Skip to content
README.md 2.52 KiB
Newer Older
denisZlobich's avatar
denisZlobich committed
# Palm Clinic ITRex Internship Training-Project
denisZlobich's avatar
denisZlobich committed

Denis Zlobich's avatar
Denis Zlobich committed
## Preparation for the launch and deployment of the project:
1. Download and install docker on your PC from the [link](https://www.docker.com/get-started).
2. Download and install Heroku CLI on your PC from the [link](https://devcenter.heroku.com/articles/heroku-cli#download-and-install).
3. ***If you need** a development server, install Node JS on your computer from the [link](https://nodejs.org/en/).

### Instructions for running the application locally:
1. In the terminal of your computer, write the command<br> ``docker run -d -p 9000:9000 deniszlobich/aqa``.
Denis Zlobich's avatar
Denis Zlobich committed
2. Open a browser and in the address bar write this URL [http://localhost:9000/](http://localhost:9000/).
Denis Zlobich's avatar
Denis Zlobich committed

### Instructions for running the application remotely:
Denis Zlobich's avatar
Denis Zlobich committed
1. Register for [Heroku](https://signup.heroku.com/login).
2. In the directory where you want to download the project, launch the terminal or command line, write the command<br> ``git clone https://gitlab.itrexgroup.com/denis.zlobich/ITRex-INTERNSHIP.git && cd ITRex-INTERNSHIP && heroku create aqa-lab && git push heroku main && heroku open``.
Denis Zlobich's avatar
Denis Zlobich committed

### Instructions for starting the development server:
1. To clone a repository, in the directory where you want to download the project, launch the terminal or command line, write the command<br>``git clone https://gitlab.itrexgroup.com/denis.zlobich/ITRex-INTERNSHIP.git && cd ITRex-INTERNSHIP && npm install``.
Denis Zlobich's avatar
Denis Zlobich committed
2. In the terminal or command line write the command ``npm start``.

### Documentation for used commands :
``npm start`` - runs the app in the development mode. Open http://localhost:3000 to view it in the browser. The page will reload if you make edits. You will also see any lint errors in the console.<br>
``docker run 9000:9000 deniszlobich/aqa`` - creates a container based on image **_deniszlobich/aqa_**.<br>
``heroku open`` - opens a tab in your browser with a project deployment.<br>
``heroku create`` - creates a new app on your Heroku account. The command’s output shows that the app will be available a [http://example.herokuapp.com]( http://example.herokuapp.com). The second URL, git.heroku.com/example.git, is the remote git repository URL; by default, the heroku create command automatically adds a git remote named “heroku” pointing at this URL.<br>
``git push heroku main`` - creates a build of the project and sends it to the remote Heroku repository for deployment.<br>
<h4>Documentation API - [Swagger](https://reactlabapi.herokuapp.com/api/docs/#/). <br>
Denis Zlobich's avatar
Denis Zlobich committed
<h4>Deploy - [Heroku](https://palm-clinic.herokuapp.com/)