-
Notifications
You must be signed in to change notification settings - Fork 0
API Setup
MaartenGDev edited this page Apr 15, 2017
·
2 revisions
This project uses a REST API to update/create/delete collections. The API uses mysql and express.
- copy
.env.exampleto.env. - configure the mysql connection in the .env file.
- run the following command:
npm/yarn db:migrate- Add a default user in the
userstable(It has to have an id of 1). (This is a workaround because of the lack of authentication).
The REST API is now ready to update/create/delete collections.
The project comes with a default seed endpoint. This endpoint provides an easy way to test your dashboard with some test data.
http://localhost:3000/api/v1/seeds/card
http://localhost:3000/api/v1/seeds/chart
http://localhost:3000/api/v1/seeds/table