Skip to content

Alekseyfgl/agroex

Repository files navigation

AGROEX

Description

AGROEX Backend description

Prerequisites

There is a heading for software needed for development.

Source Link
Node(16+) Node.js
PostgreSQL 14
Docker Download

If you have docker you can run the application

$ docker-compose up

If you don't have docker :(

Install PostgreSQL:

- Select the all components
- Installation of directories:
    - Suggested Windows directory: /var/lib/postgresql
    - Suggested MacOs directory: /Library/PostgreSQL/14
- Database Port: 5432
- Set Superuser of password: choose your own or just use "root"
- Locale: en_US.UTF-8 or default

Pre-setup

pgAdmin:

- Set password user (you may also use "root") #This password and superuser password are different
- Click on PostgreSQL 14 server
- Enter the Superuser password you chose during the PostgreSQL installation
- Create new Database "categories"

If you have a MacBook, you need to change the paths in docker-compose.yml:

environment:
    PG_DATA: /Library/PostgreSQL/14/data
    volumes:
      - pgdata:/Library/PostgreSQL/14/data

.env configuration:

PORT=5000
POSTGRES_TYPE=postgres
POSTGRES_HOST=postgres #for local use POSTGRES_HOST=localhost
POSTGRES_PORT=5432 
POSTGRES_PASSWORD=root #or use your superuser password
POSTGRES_USERNAME=postgres
POSTGRES_DB=categories

Run app on localhost

Check again POSTGRES_HOST=localhost
$ npm i
$ npm run start:dev

After the launch, the description of the API will be available at:

$ http://localhost:5000/api/docs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages