Code Monkey home page Code Monkey logo

node_mongo_migrator's Introduction

Mongodb database migration on top of nodejs and express js

License: MIT This is a test project to test how nodeJs migration works with [migrate-mongo].(https://github.com/seppevs/migrate-mongo#readme)

Running The GUI

Once the server is successfully started, you should see a log like below:

	Express server started at port : 3000
	MongoDB Connection Succeeded.

You can add new data by clicking create new or just run the seed data migration to add data.

Running the migrations

First you need to create a migration file, to create migration file, go to powershell terminal and write following command:

	migrate-mongo create [you-migration-name]

A new file will be created starting with the creation timestamp and followed by migration name. in this new file you can copy paste code from one of the files from sample-migrations directory.

for example: The newly added migration:

after adding the migration run this command:

	migrate-mongo up

new data will be added in the database.

database after running this command:

list page command after running the migration:

other migrate-mongo commands to explore:

	migrate-mongo status
	migrate-mongo down

Please see the sample-migrations folder for further examples.

node_mongo_migrator's People

Contributors

rashik004 avatar

Watchers

 avatar  avatar

node_mongo_migrator's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.