Giter Site home page Giter Site logo

piano-tracker's Introduction

Piano-Tracker

This application allows users to track their piano sessions by inputting dates, descriptions, and durations. The user can keep track of their activity by viewing the data they have entered in order to see how much time they have spent on the piano.

Functionality:

  • Utilized the MERN stack (MongoDB, Express, React, Node) to create a full-stack application.
  • Tied the backend of the application to MongoDB Atlas where our database and cluster is stored
  • Created a schema for the database using the mongoose library for User and Piano Sessions
  • Created an Express server for the backend, attached the cors and express.json middleware (since we will be sending and receiving json), and connected it to the database
  • Added API endpoints routes to communicate with the database using incoming HTTP, GET, and POST requests
  • Used Postman to test the API endpoint routes
  • Installed Axios library to send HTTP requests to the backend allowing to create new users and piano sessions in the database

To Run Application

First, you would need to create an account on MongoDB Atlas and retrieve your MongoDB credentials. You need to connect your cluster to your application by creating a .env file in the server directory of your application.

In your .env file it should look like this:

ATLAS_URI= mongodb+srv://database:[email protected]/?retryWrites=true&w=majority

Make sure you have added your ip address to the MongoDB cluster in the 'Network Access' section of the cluster's dashboard, and that your env file is in the server directory before proceeding

Once that is set up, type the following to start the server and connection to your Mongo database:

cd server
npm install
nodemon index

This will install all the dependencies and start the server.

Finally, to run the react app, go back into the root directory of the application and type:

npm install
npm start

This will start the react app and now you can log and track your piano sessions and activities.

Screenshot 2022-10-25 at 7 58 59 AM

piano-tracker's People

Contributors

armanmoztar avatar

Stargazers

 avatar  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.