The backend for my submission for the API technical challenge provided by Rithm. Check out the client here
-
Clone the application and
cd
into the project directory. -
Install dependencies:
npm i
- Copy the contents of
.sample.env
into a.env
file
cat .sample.env > .env
-
Populate the
.env
file with your PostgreSQL database URL's (e.g.,postgres://user:password@127.0.0.1:5432
) -
Migrate the database:
npx knex migrate:latest
- Seed the database with csv data:
npx knex seed:run
- Run the dev server
npm run start:dev
To run tests, make sure the test database URL is populated in the .env
file and run npm test
- Support API pagination
- First iteration: SQL LIMIT + OFFSET
- Security
- SQL Injection
- CORS
- Tests
- Code coverage
- test cases for large queries
- CRUD