Skip to content

A production grade dockerized express boilerplate to make your server-side development a breeze πŸš€

License

Notifications You must be signed in to change notification settings

meerhamzadev/express-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

banner

A production ready dockerized express boilerplate to make your server-side development a breeze πŸš€


⚑Features

βœ… Production ready with one docker-compose command.
βœ… Use MVC architecture.
βœ… Local dockerized postgres db.
βœ… Dockerized PgAdmin to check the db records.
βœ… Sequelize ORM configured.
βœ… CRUD API (Todo App).
βœ… JEST for testing.
βœ… Seperate Database(Sqlite) configured for test cases coverage.
βœ… Hot Container reload.

βš’οΈ Techologies Used

  • Sequelize: For ORM & database operations.
  • JEST: For testing purposes.
  • Docker & docker-compose : For Virtualization.
  • postgresSQL: Database.
  • PgAdmin: To interact with the Postgres database sessions.
  • Swagger-Autogen: To automatically generate swagger-ui documentation.

πŸ’₯ Setup & Usage

Make sure you have docker and docker-compose installed docker installation guide

Step 1

create .env file in the root directory

DATABASE_URL=postgres://postgres:postgres@database:5432/todo-app-db
DB_USER=postgres
DB_PASSWORD=postgres
DB_NAME=todo-app-db
[email protected]
PGADMIN_PASSWORD=password

Step 2

docker-compose build

Step 3

docker-compose up

πŸ” Preview

Your Production Ready Express CRUD backend app is up and running on localhost:3000 πŸŽ‰

  • Swagger docs on localhost:3000/api/docs swagger-ui

  • PgAdmin on localhost:7000 pg-admin

πŸ‘¨πŸ»β€πŸ’» Contributing

Make sure you read the contributing guidelines before opening a PR.

πŸ”‘ License

⚑ AUTHOR

πŸ™‹πŸ»β€β™‚οΈ Yo! It's Meer, a senior year CS undergrad. Let's get connected

TwitterΒ  LinkedInΒ  GmailΒ 

About

A production grade dockerized express boilerplate to make your server-side development a breeze πŸš€

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published