Kumparan Skill Test (create a simple news service API)
- Node JS v17
- PostreSQL v13
- Elasticsearch v7.1.1
- Postman (to end-to-end testing a simple news service API)
- Install requirements, create database and import file sql table "articles.sql" (in this repo) to database, then setup single node (without cluster) and create index on elasticsearch.
- copy .env.example to .env.
- Fill all your credential to .env.
- Install dependencies : npm install.
- Integration testing : npm run test.
- Run app : npm run dev.
- Import postman collection "kumparan_skill_test.postman_collection.json" (in this repo).
- End-to-end testing with postman.
- Done.