Skip to content

Latest commit

 

History

21 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoodPlates Backend

This repository contains everything needed to run the backend for a local version of GoodPlates.

You can find the frontend repository here.

Setup

  1. Clone the repository

git clone https://github.com/SebastianHog/GoodPlatesBackend.git

  1. Navigate into the project directory

cd GoodPlatesBackend

  1. Install dependencies

npm install

  1. Create a .env file
  • Add MONGO_CONNECTION_STRING and SECRET_KEY.

  • The MONGO_CONNECTION_STRING should be in this format:

    mongodb+srv://<username>:<password>@<cluster>/<database>?retryWrites=true&w=majority
    

    Most(or all) of it will likely be given to you when you make your DB, but this is a good reference point.

    Replace <username>, <password>, <cluster>, and <database> with your MongoDB credentials and cluster information.

    Generate a SECRET_KEY:

    node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
    
  1. Start the server with npm run dev

The backend should now be running locally.


Notes

  • The backend connects to a MongoDB database using the MONGO_CONNECTION_STRING defined in the .env file.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages