Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create table or collection command, standalone dev environment #14

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

robinmollah
Copy link

  1. Added docker-compose that deploys a mongodb server. Run
docker-compose up
  1. Added a sample file that can be run using:
node sample/index.js

It must run after a npm run dev has started and running.

  1. Added support to create collection or table, added a sample code in the sample/index.js file.

@ariflogs
Copy link
Owner

Thanks a lot for the PR bro 🙏

Totally on board with the samples and the docker-compose.yml file. can you please include them in the .npmignore?

As for the create table, don't you think it will be better to focus on the SELECT query and make it decent first? Coz adding support for a new operation will come with a lot of new options that we might now be able to support in the near future.

@robinmollah
Copy link
Author

Hi, the reason for the create command is to create this repository running from a blank database. To make the repository very portable after cloning the repository someone can run the sample file and create a table, and seeds with some data, then can do select and other operations. Currently, if I want to use this program, to make an experimental environment I will need to create a table and drop some data manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants