/Huntweb-NodeJS

Back-End application inspired by Product Hunt made with Node.js, Express and MongoDB

Primary LanguageJavaScript

Huntweb NodeJS

Back-End application inspired by Product Hunt made with Node.js, Express and MongoDB

The purpose of this application is to practice the concepts of Node.js as seen in the Rocketseat free course.

Runing it localy

Docker and MongoDB

This project needs a Mongo Database to work, it can be set up easily with Docker

After Docker installation run docker pull mongo to download a Mongo image

Then create a new container, and redirect ports with docker run --name mongodb -p 27017:27017 -d mongo

Now you can start your container when needed with docker start mongodb

NPM / Yarn

Inside the project root directory run npm install or yarn install to install the project dependencies

Finally you can run npm run dev or yarn dev to start de back-end server

Avaliable Routes

You can easily test all the routes with Insomnia

Directory Structure

  • node_modules/ (project dependencies)
  • src/ (main application files)
    • controllers/ (application controllers)
    • models/ (application models)
    • routes.js (application routes)
  • server.js (initialize the application)