Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1.29 KB

README.md

File metadata and controls

37 lines (24 loc) · 1.29 KB


Test with JEST

A project to learn TDD with the JEST.

Features

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.

Getting started

  1. clone this repo using git clone https://github.com/s1lasjee/test-jest.git.
  2. Move yourself to the appropriate directory: cd test-jest.
  3. Run yarn to install dependencies.

Run Server

  1. Config your database in .env file.
  2. check if there is already a database with the name that is in DB_USER in the .env file. otherwise, create...
  3. Run yarn sequelize db:migrate to create tables in database.
  4. Run yarn run dev to start server.

Tests

  1. Config your database in .env.test.
  2. Run yarn test to test app.