Places

Stars
0

PLACES

Places is a web application using MERN stack. You can share places you love with others users. You can login, add many places with their own picture and description but also add their location on a Google map.

Getting started

Prerequisites

  • NodeJS, download here
  • NPM, download here
  • MongoDB Atlas, connect here

Installing

$ git clone [email protected]:LudoCruchot/Places.git <yourLocalRepo>
$ cd <yourLocalRepo>/frontend
$ npm install
$ cd ../backend
$ npm install

Setting up the database

Check here to get started with Atlas. Then, you need to create a database called places with two collections named users and places

Usage

Running frontend

Rename the .env_sample file into .env and set your own environment variables

REACT_APP_GOOGLE_API_KEY=YOUR_GOOGLE_API_KEY
REACT_APP_BACKEND_URL=YOUR_BACKEND_URL
REACT_APP_ASSET_URL=YOUR_ASSET_URL
<yourLocalRepo>/frontend
$ npm start

Running backend

Rename the nodemon_sample.json file into nodemon.json and set your own environment variables

{
  "env": {
    "DB_USER": "Your user name",
    "DB_PASSWORD": "Your password",
    "DB_NAME": "Your database name",
    "GOOGLE_API_KEY": "Your google api key",
    "JWT_KEY": "Your JWT key"
  }
}
<yourLocalRepo>/backend
$ npm start