This is an API built for the purpose of supporting the front end website Inkwell, see front end repo here.
A hosted version of the API can be found here: https://inkwell-backend-kvij.onrender.com/api/
Due to the free service used to host the API it can be slow to respond at first, if you have issues accessing the API please wait one minute and then refresh.
In order to clone this repo. Navigate to your destination directory and run:
In order to run this API you will require npm and certain dependencies. In your terminal run:
npm install --dev
In order to set up the databases to run this .api you will need to add a .env file to the root of the directory:
- .env
These files should contain:
DATABASE_URL = mongodb+srv://charliesolomon99:InkWell1@cluster0.cmhbo.mongodb.net/
In order to seed the development database run:
npm run seed
In order to host the API locally run:
npm run start
The test suite can be run with:
npm test endpoints
A list of all endpoints and their functions can be found here
In order to run this API you must have minimum version of node of 22.2.0