Skip to content

Surfnam/gt-marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

323 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hi guys for the backend setup, I installed some key dependencies and created a barebone express backend.

  1. Folder setup

    • create a folder named 'backend' in the root folder
    • create files named server.js and .env
  2. Installation

    • cd to the backend folder
    • in the terminal type: -npm init -y (creates package.json file) -npm i express mongoose dotenv (dependencies) -npm i -D nodemon (devDependency that restarts app automatically when there are changes )
  3. package.json configurations

  • go to scripts and add the following: { "start": "node server.js", "dev": "nodemon server.js" }

  • in the terminal, type node run dev and confirm the server is running.

  1. gitignore update
    • make sure to add .env and node modules to the gitignore file (important)

About

Hosts the code for the GT Marketplace project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors