Code Monkey home page Code Monkey logo

newtraveldiary's Introduction

TravelDiary

With this tool you can capture your thoughts while you are enjoying your travels. Go back later to review details about the locations as well as your experiences.

Demo

https://react-travel-diary.herokuapp.com/

Requirements

The server is in the /src directory. The client will be served via the /client directory. Each has it's own project.json that will need to be installed. Each directory will need its own .env file to identify:

In the server directory:

  • MONGODB_URI='Your MongoDB Atlas access link'
  • NODE_ENV='production or development mode'

In the client directory:

  • REACT_APP_GOOGLEMAPS_API='Your google maps API Key'
  • NODE_ENV="production or development mode"

Available Scripts

"build": "npm run build --prefix client",
"start": "nodemon server.js",
"client": "npm start --prefix client",
"dev": "concurrently -n 'server,client' -c 'red,green'  \"nodemon server.js\" \"npm run client\""

npm start

Runs the app in the development mode.
Open http://localhost:5000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

npm run client

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console. It will not run the backend

npm run dev

Runs the app in the development mode.
Will open http://localhost:3000 to view it in your browser.

The backend will connect to http://localhost:5000 and connect the backend to mongoDB and execute api calls for Getting and Posting Data.

Front End Menu

  • Home Tab => Allows you to see your current location or modify the location prior to your Journal Entry.
  • Add Entry Tab => Allows you to input a title and your thoughts/experiences at the selected Location. When you tap the Enter button you will be routed back to the Entries Page to view your journal entires.
  • Route Tab => Allows you to see all your entries on the maps. Select the Marker to see more information about that location.
  • Entries Tab => A collection of all of your entries. You can edit the entry title, your thoughts and the address of the location.

Browser Note

You may need to allow location services via the browser. This app will request geolocation permission from the browser. If permission is denied it will load the default location and you can navigate via the map to your current position.

newtraveldiary's People

Contributors

joshshearer avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.