Skip to content

aeatencio/api-101

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API 101

Express.js + Sequelize + MariaDB + Adminer

git clone https://github.com/aeatencio/api-101
cd api-101
docker-compose up

Wait for it to initialize (the first time it takes longer)

Sequelize commands

Take a look at them

docker-compose run --rm api node_modules/.bin/sequelize

Run your DB Migrations

docker-compose run --rm api node_modules/.bin/sequelize db:migrate

Seed your DB

docker-compose run --rm api node_modules/.bin/sequelize db:seed:all

Access your API

Visit http://localhost:8082

Take a look at the examples

http://localhost:8082/examples

Play with your API

Modify the contents of your api folder and have fun!

Share your API

Visit http://localhost:4042

ngrok will provide you a public url to share your API

MariaDB + Adminer

Fork of https://github.com/aeatencio/mariadb-101

Access your DB

Visit http://localhost:8080

Use these credentials:

  • Username: root
  • Password: example

Share your DB

Visit http://localhost:4040

ngrok will provide you a public url to share your Adminer

Stop your servers

Type Ctrl-c

Wait for them to finish and then run

docker-compose down

About

Express.js + Sequelize + MariaDB + Adminer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published