Requires Node.js v12+ to run.
- Clone the Repo
- Open terminal, and go to inside the repo folder then run npm install
$ cd crudapi $ npm install -d - Prepare your mysql database credentials then export it as environment variables
$ export NODE_DBHOST=localhost NODE_DBNAME=dbname NODE_DBUSER=root NODE_DBPASS=rootpwd - Alternatively you can change the config file in
./config/config.jsin development array - Now add tables needed for this app, use command below to add the tables.
$ npx sequelize-cli db:migrate
- Finally run
npm startto run the application
you can run the API in your machine in port 3000 like localhost:3000 using Postman, you can explore this api doc to try it.