- Run
sequelize-cli db:migrate
- Run
node index.js
- You can add companies using something like curl to POST to the API:
curl -X POST -H "Content-Type: application/json" -d '{
"name": "Example Company",
"country": "Example Country",
"website": "https://example.com",
"email": "[email protected]"
}' http://localhost:3000/new_company
- You can now navigate to http://localhost:5000/companies/unverified to see unverified companies.
- You can now navigate to http://localhost:5000/companies to see all companies.
- Companies can be verified using
Video demonstration: click here