- NodeJS v15.6.0+
- Npm v6.14.11+
- Postgresql v13.1+
Requirements installation
- NodeJS
$ sudo apt update
$ sudo apt install nodejs
$ nodejs -v
- npm
$ sudo apt update
$ sudo apt install npm
$ npm -version
- Postgresql
$ sudo apt update
$ sudo apt install postgresql postgresql-contrib
$ sudo -u postgres psql -c "SELECT version();"
- Create user
$ sudo su - postgres
postgres@$ psql
> CREATE USER user_name WITH SUPERUSER CREATEDB INHERIT LOGIN NOREPLICATION CONNECTION LIMIT -1 PASSWORD 'user_password';
- Create Database
> CREATE DATABASE database_name;
> GRANT ALL PRIVILEGES ON DATABASE database_name TO user_name;
- Install the dependencies listed in the package.json file
- Create a .env file in the root folder of the project similare to the following example
- Open the browser
- Copy the next URL and paste it inyo the broser
> http://localhost:3000/api/v1/