t1mwillis / w6-backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Backend Server

By the end of this lesson. You should be able to set up two separate servers that will speak with each other -- one with frontend code and the other with react code.

This repository contains the backend for the w6-frontend repository.

Installation

  1. Fork & Clone this repository

  2. cp nodemon.sample.json nodemon.json

  3. Create a new Cluster on MongoDB Atlas titled something like general-purpose or reuse one you already have.

  4. Update the MONGO_DB_CONNECTION in your nodemon.json file with the full connection string. Make sure you include the password you set up for the database and change the name of the database from test to something lke journal_dev.

  5. npm install

  6. npm run reset-db

  7. npm run dev

Once installation is working, take a look at the existing code to make sure you understand what is happening. Then, try making requests to the API.

About


Languages

Language:JavaScript 100.0%