Skip to content

majiyd/simple-express-server

Repository files navigation

In this simple project, i'll be experimenting with and building my first REST API.

I'll be making use of

  1. Node
  2. Express
  3. Sequelize
  4. PostgreSQL

To run locally on your system clone the repo

git clone https://github.com/majiyd/simple-express-server.git

then running

yarn

Download and install PostgreSQL here if you don't have it installed already.

Update the content in /config/config.js with the correct username and password for your install.

Now run

sequelize-cli db:create && sequelize-cli db:migrate && sequelize-cli db:seed:all

This would create the database, the required tables, columns and update them with some default data.

Finally run

npm start

Test the api using Postman at http://localhost:${PORT}.

About

Experiments and learnings while building my first rest api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published