A project to learn TDD with the JEST.
This app features all the latest tools and practices in client and development!
-
Node Js — A web framework for Node Js.
-
Factory Girl — is a factory library for Node.js and the browser that is inspired by Factory_girl.. It works asynchronously and supports associations and the use of functions for generating attributes.
-
Faker — generate massive amounts of fake data in the browser and node.js.
-
PostgreSQL — is a relational object database management system (DBMS), developed as an open source project.
- clone this repo using
git clone https://github.com/s1lasjee/test-jest.git
. - Move yourself to the appropriate directory:
cd test-jest
. - Run
yarn
to install dependencies.
- Config your database in
.env
file. - check if there is already a database with the name that is in
DB_USER
in the.env
file. otherwise, create... - Run
yarn sequelize db:migrate
to create tables in database. - Run
yarn run dev
to start server.
- Config your database in
.env.test
. - Run
yarn test
to test app.