AGROEX
AGROEX Backend description
There is a heading for software needed for development.
Source | Link |
---|---|
Node(16+) | Node.js |
PostgreSQL | 14 |
Docker | Download |
$ docker-compose up
- 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
- 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"
environment:
PG_DATA: /Library/PostgreSQL/14/data
volumes:
- pgdata:/Library/PostgreSQL/14/data
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
Check again POSTGRES_HOST=localhost
$ npm i
$ npm run start:dev
$ http://localhost:5000/api/docs