In this project, I create a REST API with express. The purpose of the REST API is to help administer a school database containing information about courses and users. Users can interact with the database by performing CRUD operations to CREATE, READ, EDIT, and DELETE courses in the database if they authenticated with the database.
-
Sequelize ORM(https://sequelize.org/)
-
Node.js(https://nodejs.org/en/)
-
JavaScript
-
CSS
NPM Packages
-
basic-auth(https://www.npmjs.com/package/basic-auth)
-
bcryptjs(https://www.npmjs.com/package/bcryptjs)
-
sequelize-cli(https://www.npmjs.com/package/sequelize-cli)
-
express-validator(https://www.npmjs.com/package/express-validator)
-
Click on the arrow down of the green button of the project to expand it.
-
Once expanded, click on download.
-
Unzip the Download folder then open your terminal on your computer.
-
From the terminal, navigate to the project directory.
-
type
npm install
to install the project dependencies. -
type
npm run seed
to seed the SQLite database. -
then run
npm start
to start/lunch the REST API.
PS: You will need to Install Postman to test the REST API on your computer.