Coder Social home page Coder Social logo

john-guerra / nodeexpressmongoes6_promptstorer Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 64 KB

A basic demo application of a prompt storer using Node Express Mongo ES6 modules and client side rendering with AJAX. Made for my webdev class

License: MIT License

JavaScript 74.02% HTML 25.98%

nodeexpressmongoes6_promptstorer's Introduction

nodeExpressMongoES6_promptStorer

A basic demo application of a prompt storer using Node Express Mongo ES6 modules and client side rendering with AJAX. Made for my webdev class

Running the project

Clone it, then create a .env file in the project folder that contains your MONGO_URL connection string. It defaults to mongodb://localhost:27017

Then in the project folder run

npm install
npm start

And open your browser on http://localhost:3000

Deploying

You can deploy it for free on Render, with the database running on MongoAtlas

Make sure you configure the right node version in the package.json file. In this case we have:

 "engines": {
    "node": ">=18.18.0 <19.0.0"
  }

Then obtain the MONGO_URL from Mongo Atlas, and configure it on the render project in the environment settings. You can add it as a secret .env file

Finally, make sure that in Mongo Atlas you whitelist ips of your deployment on render https://render.com/docs/static-outbound-ip-addresses

And that's it

nodeexpressmongoes6_promptstorer's People

Contributors

john-guerra avatar

Stargazers

 avatar

Watchers

 avatar

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.