Table of contents
-
Node > 20 version. You can use NVM to setup a node version manager
-
Package manager
-
PNPM
npm install -g pnpm
-
NPM
npm install -g npm@latest
-
YARN
npm install -g yarn
-
If you are going to use a package manager other than "pnpm" run this command before you begin
rm -rf node_modules && rm pnpm-lock.yaml
-
Clone the repository
git clone https://github.com/alevidals/pms-codetest.git
-
Install the packages (You can use
npm
oryarn
instead ofpnpm
if you like)pnpm install
-
Execute the project (You can use
npm
oryarn
instead ofpnpm
if you like)pnpm run dev
-
Unit tests. (You can use
npm
oryarn
instead ofpnpm
if you like)pnpm run test:unit
-
Integration tests. (You can use
npm
oryarn
instead ofpnpm
if you like)pnpm run test:integration
-
E2E tests. (You can use
npm
oryarn
instead ofpnpm
if you like)pnpm run test:e2e
-
Build the container
docker build -t <tag>
-
Run the container
docker run -p 3000:3000 <tag>