Skip to content

Genez-io/express-mongo-starter

Repository files navigation

Join our community Follow @geneziodev

Express Mongo Starter

This is a starter template for building a full-stack web application with Express and MongoDB on the backend and HTML on the frontend. The template is set up to be deployed to Genezio, a platform for building and deploying full-stack web applications.

This template includes:

  • Mongoose ORM for Mongo
  • A crud example with a User model
  • A simple HTML frontend that uses the backend API for create a new user.

Routes and the logic for handling requests are defined in the routes folder. The models folder contains the Mongoose models for the database.

The config.js file contains the configuration for the database connection.

Routes:

  • GET /users - Get all users
  • GET /users/:id - Get a user by id
  • POST /users - Create a new user
  • PUT /users/:id - Update a user by id
  • DELETE /users/:id - Delete a user by id

Deploy

🚀 You can deploy your own version of the template to Genezio with one click:

Deploy to Genezio

Genezio CLI Commands

Genezio also provides a CLI tool that you can use to deploy your project from your machine. All commands are run from the root of the project, from a terminal:

Command Action
npm install -g genezio Installs genezio globally
genezio login Logs in to genezio
genezio local Starts a local server
genezio deploy Deploys a production project
genezio --help Get help using genezio

Learn more

To learn more about Genezio, take a look at the following resources:

Contact

If you need support, or you have any questions, please join us in our Discord channel. We'd love to chat!

Built With


About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published