ShadowNet is a tool designed to help you create a simple back-end application using Express.js and MongoDB.
-
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
-
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
.
This project is licensed under the MIT License. See the LICENSE file for details.