shadownet
v0.0.7
Published
ShadowNet: Quickly set up Express.js and MongoDB integration for seamless execution.
Downloads
14
Maintainers
Readme
ShadowNet
ShadowNet is a tool designed to help you create a simple back-end application using Express.js and MongoDB.
Installation
First, install ShadowNet globally by running the following command:
npm install -g shadownet
Once installed globally, navigate to your project directory and run the following command to create the project file structure:
npx create-structure
After creating the file structure, run the following command to generate files for a new resource:
npx create-files your_resource
Then, open the
.env
file and set your MongoDB connection string:CONNECTION_STRING=your_mongodb_connection_string_here
Usage
To start the project, run the following command:
npx nodemon server.js
Define your data model and business logic in the
controllers
,models
, androutes
folders.Once the server is running, you can make API requests at
http://localhost:8080/api/your_resource
.
License
This project is licensed under the MIT License. See the LICENSE file for details.