This project is a RESTful API built using Express.js and MongoDB with Mongoose and using Chart.js for data visualization.
- Clone the repository:
git clone <repository-url>
- Navigate to the project directory:
cd api-creation
- Install dependencies:
npm install
- Start the server:
nodemon server.js
- Access the API at
http://localhost:3000/api
- Run tests:
npm test
- chart.js: Quick chart creations for the used data from MongoDB.
- ejs: Embedded JavaScript templates.
- express: Web framework for Node.js.
- mongoose: MongoDB for Node.js.
- @babel/preset-env: A Babel preset for each environment and because Jest didn't want to run it without it.
- babel-cli: Babel command line.
- babel-preset-env: Babel preset for compiling JavaScript.
- @playwright/test: A Node.js library for browser automation and E2E testing.
- jest: Jest is a framework for testing JavaScript code. Unit testing is the main usage of it.
- nodemon: Utility that automatically restarts your Node.js server during development.
- supertest: Using Supertest, we can test endpoints and routes on HTTP servers.