Skip to content

unisse-courses/s15-mp15

Repository files navigation

.doetal, a Calendar Based Planner

This repository consists of the files necessary in running 'doetal" a Calendar Based Planner.

Features:

  • Create up to 15 Calendars with customized names and colors.
  • Create, Update, and Delete Unlimited Plans/Schedules.
  • Daily and Monthly View.

Visit https://doetal-app.herokuapp.com/ for a working version of the web app.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Local Setup

  1. Fork this repository to create a copy on your GitHub account.
  2. Clone the forked repository to your machine.
git clone https://github.com/YOUR_USERNAME/s15-mp15.git
  1. Navigate to the directory.
cd s15-mp15
  1. Create a new file .env. In this file, set the port, the MongoDB connection URL and the value of secret in the express-session
PORT = 3000
MONGODB_URL=""
SESSION_SECRET=""
  1. Install the dependencies in package.json. All needed packages are already included.
npm install
  1. Run the server using the script defined (using nodemon)
npm run dev
  1. Navigate to http://localhost:3000/ or selected port. You should see the login page (see link to web app above for a sample).

To stop the server, simply key in CTRL+C (Windows) or control (^) + C (Mac).

Deployment

Prerequisites

  1. Use the heroku login command to login to your Heroku account. It will open up the browser for login.
heroku login
  1. Since our application is already connected to a git repository, we can now directly create the Heroku app.
$ heroku create app-name
Creating app... done, ⬢ protected-sea-52141
https://protected-sea-52141.herokuapp.com/ | https://git.heroku.com/protected-sea-52141.git
  1. When you create an app, a git remote (called heroku) is also created and associated with your local git repository. Before pushing any changes to the heroku remote branch, make sure all changes are commited first.
git add .
git commit -m 'Update code for deployment'

or

commit and push all changes using GitHub Desktop
  1. To deploy the application, simply push the code to the heroku branch:
git push heroku master
  1. To know that it was completely deployed, you should see at the end of the build:
...
remote: Verifying deploy... done.
To https://git.heroku.com/protected-sea-52141.git
 * [new branch]      master -> master
  1. According to the Heroku Guide, to ensure that at least one instance is running, execute this command:
heroku ps:scale web=1
  1. Go to the app's Settings tab from the [Heroku Dashboard](https://dashboard.heroku.com/apps and click the "Reveal Config Vars" button.
Use the `.env` file created previously to create the config vars. No need for the quotes, just paste the values and make sure to click **Add**.
  1. To access the app and get the URL of your application, run:
heroku open
  1. You can also test if the code works locally, by running:
heroku local web

This will simply get the values from the local .env file and whatever's in the current repository. To ensure that changes get deployed, do not forget to COMMIT the changes to the code.

That's it! You now have a fully deployed application on Heroku!

Built With

  • HTML, CSS, Javascript - Client Side
  • Node.js, Express, Handlebars, AJAX - Server Side
  • Toast UI - The calendar ui plugin used in the app
  • Boostrap - For free CSS classes
  • mongoose - Object modeling used for Node.js
  • mongodb - Atlas - Cloud-hosted MongoDB service
  • Heroku - Cloud platform used in running our app
  • PurpleBooth's README Template - Templated used in creating this README file
  • GitHub - File repository for collaboration

Team Members:

  • Custodio, Nicholas Rupert
  • Sanchez, Martin Christopher B.
  • Mapa, Jamie Shekinah

Acknowledgments

  • Ms. Unisse Chua for giving us the opportunity and lessons to create our project
  • Our friends and family

About

Calendar App

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5