Installation instructions
August 27th, 2021 by PostPcEra
This page details Installation instructions for various technology stacks.
Tech Stacks
Node.js, JavaScript , TypeScript
Next.js
NESTJs
Node.js version upgrade
- n is another useful Node version manager you can use for updating Node.js on macOS and Linux
- follow these steps
# first intall n$ npm install -g n
# see where it it insalled $ which n # /usr/local/bin/n
# To see a list of your downloaded Node.js versions, run n on its own:# from the menu, you can delete any old versions .$ n
# to download and update to your desired Node.js version, execute the following:$ n <version-number>
# You can specify to update to the newest LTS version by running:$ n lts
$ n 16.13.2
Python
- Python Virtual Environments: A Prime
$ python3 -m venv venv_name # <venv_name> can be any name for a folder
$ source venv_name/bin/activate
(venv_name) $ # Notice how your prompt is now prefixed with the name of your environment
(venv_name) $ deactivate # you go back to the “system” context
$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:
$ source venv_name/bin/activate
(venv_name) $ echo $PATH # our virtual environment’s bin directory is now at the beginning of the path.
/Users/valuec/python-virtual-environments/venv_name/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:
Postgres DB
- Install PostgreSQL on Linux
$ sudo -i -u postgres psql
postgres=# \du
postgres=# \q
postgres=# create database dvdrental;
postgres=# \c dvdrentalDB # connect to dvdrentalDB
dvdrentalDB=# select count(*) from film; # prompt change to Database name
Prisma ORM
- Python Virtual Environments: A Prime