Backend API Test Case of ADS Intern, using Node.JS, express.JS, and Sequelize.
Open XAMPP and start both Apache and MySQL services.
In project terminal, run the following command to download all the required packages:
npm install
Ensure that you have a database named my_database in your MySQL if not create it first, or you can customize the database name by specifying it in the .env file.
Execute the following command to run migrations:
npx sequelize-cli db:migrate
If you need initial data, run the following command:
npx sequelize-cli db:seed:all
To launch the project, use the following command:
npm start
You can test the API using Postman. If your project is running on port 3000, enter localhost:3000/ in Postman. Use either GET or POST HTTP methods.