Countdown To-Do App
This app is a to-do list with a countdown feature. The app allows you to:
This app was built using:
Future improvements could include:
... lessons still loading...
git clone https://github.com/YOURUSERNAME/countmedown.git
This will make a copy of YOUR fork of the original repo. Change into this directory:
cd /countmedown
In order to be able to fetch changes from the upstream (original) repo to your local repo, do the following:
Navigate to the ORIGINAL repo, https://github.com/intelagense/countmedown
Click the pull down that says Code, and copy the url in the box to your clipboard (https://github.com/intelagense/countmedown.git)
In your terminal, type:
git remote -v
This will show your current remote repo, which should be YOUR repo
origin https://github.com/YOURUSERNAME/countmedown.git (fetch)
origin https://github.com/YOURUSERNAME/countmedown.git (push)
To add the new upstream, type:
git remote add upstream https://github.com/intelagense/countmedown.git
Now if you type:
git remote -v
You should see:
origin https://github.com/YOURUSERNAME/countmedown.git (fetch)
origin https://github.com/YOURUSERNAME/countmedown.git (push)
upstream https://github.com/intelagense/countmedown.git (fetch)
upstream https://github.com/intelagense/countmedown.git (push)
Now you may edit the files in your local copy.
To push your changes:
git add .
git commit -m 'message'
git push
To sync your files with upstream (original repo, https://github.com/intelagense/countmedown) type:
git fetch upstream
To install the necessary npm packages listed in package.json:
npm install
Example of dotenv use:
const dotenv = require('dotenv') // .env file
dotenv.config() // using .env
const connectionString = `mongodb+srv://${process.env.USER}:${process.env.PW}@cluster0.bzzkg.mongodb.net/?retryWrites=true&w=majority`;
Example of file ".env" (this file is in your project root folder): (plain text file, full name .env)
Be sure to use the quotes to surround your values if they may have strange characters or spaces
PW = 'password'
USER = 'username'
PORT = 8000
This is accessed via:
process.env.USER
process.env.PW
process.env.PORT
// For example:
const passwd = `${process.env.PW}`;