Skip to content

lucmkz/BackEndNode

Repository files navigation

BackEndNode

Backend builded on RocketSeat`s bootcamp course

ℹ️ Start App

# Clone this repository and install dependencies
$ yarn

# Start Server
$ yarn dev:server

server is running on port 3333

ℹ️ Docker

# To get id, use docker ps -a
$ docker start(id)

# Other Commands
# To create a new instance
$ docker run --name gostack_postgres -e POSTGRES_PASSWORD=\*\* -p 5432:5432 -d postgres

# docker Images Running
$ docker ps
# or
$ docker ps -a
# Logs
$ docker logs:(id)

ℹ️ Migrations on TypeORM (database)

# To create a new migration
$ yarn migration:create -n (NameOfMigration)

# To create or Update Table (image docker necessary up)
$ yarn migration:run

# To revert migrations
$ yarn migration:revert

Made by Lucas Santos 👋 Get in touch!

Licence MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published