/project_2

BE project. React, Django,Postgres

Primary LanguagePython

Design

Alt text

Instructions to run application

  1. Fork the project from the respective gitlab repository
  2. Open terminal and cd into desired folder to host the project
    • git clone [repository link]
    • cd [project name]
  3. Run the following command to open the application in Visual Studio Code
    • code .
  4. Run the following commands after opening the project in the desired folder:
    • docker volume create beta-data (generates database)
    • docker-compose build (creates the images for the containers)
    • docker-compose up (creates containers and runs them with the respective images)
  5. View the application on http://localhost:3000

PORTS and URL Paths


MANUFACTURERS

| Method | URL | Expected Response | PORT

| GET | http://localhost:8100/api/manufacturers/ | List manufacturers | 8100 Alt text

| POST | http://localhost:8100/api/manufacturers/ | Create a manufacturer | 8100 Alt text

| GET | http://localhost:8100/api/manufacturers/:id/ | Get a specific manufacturer |8100 Alt text

| PUT | http://localhost:8100/api/manufacturers/:id/ | Update a specific manufacturer | 8100 Alt text

| DELETE | http://localhost:8100/api/manufacturers/:id/ | Delete a specific manufacturer | 8100 Alt text


VEHICLE MODELS

| Method | URL | Expected Response | PORT

| GET | http://localhost:8100/api/models/ | List vehicle models | 8100 Alt text

| POST | http://localhost:8100/api/models/ |Create a vehicle model | 8100 Alt text

| GET | http://localhost:8100/api/models/:id/ | Get a specific vehicle model | 8100 Alt text

| PUT | http://localhost:8100/api/models/:id/ |Update a specific vehicle model | 8100 Alt text

| DELETE | http://localhost:8100/api/models/:id/ | Delete a specific vehicle model | 8100 Alt text


AUTOMOBILES

| Method | URL | Expected Response | PORT

| GET | http://localhost:8100/api/automobiles/ | List automobiles | 8100 Alt text

| POST | http://localhost:8100/api/automobiles/ | Create an automobile | 8100 Alt text

| GET | http://localhost:8100/api/automobiles/:vin/ | Get a specific automobile | 8100 Alt text

| PUT | http://localhost:8100/api/automobiles/:vin/ | Update a specific automobile | 8100 Alt text

| DELETE | http://localhost:8100/api/automobiles/:vin/ | Delete a specific automobile | 8100 Alt text


SALES MICROSERVICE

| Method | URL | Expected Response | PORT

| GET | http://localhost:8090/api/salerecords/ | List of sales | 8090 Alt text

| POST | http://localhost:8090/api/salerecords/ | Create an new sales record | 8090 Alt text

| GET | http://localhost:8090/api/salesreps/ | List of sales people | 8090 Alt text

| POST | http://localhost:8090/api/salesreps/ | Create a new sales person | 8090 Alt text

| GET | http://localhost:8090/api/salescustomers/ | List of customers | 8090 Alt text

| POST | http://localhost:8090/api/salescustomers/ | Create a new customer | 8090 Alt text


SERVICE MICROSERVICE

| Method | URL | Expected Response | PORT

| GET | http://localhost:8080/api/technicians/ | List of technicians | 8080 Alt text

| POST | http://localhost:8080/api/technicians/ | Create a new technician resource | 8080 Alt text

| GET | http://localhost:8080/api/appointments/ | List of appointments | 8080 Alt text

| GET | http://localhost:8080/api/appointments/int:pk/ | See specific appointment | 8080 Alt text

| POST | http://localhost:8080/api/appointments/ | Create a new appointment | 8080 Alt text