Skip to content

dorukozerr/TodoApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Case Study - Monorepo

Backend

  • Register (with email verification)
  • Login
  • Create Todo
  • Edit Todo
  • Add thumbnail to Todo
  • Add attachments to Todo
  • Download/View attachments from Todo

Frontend

  • GUI for related backend functionalities

Required Environment variables

.env files are located in root of each folder

backend

NODE_ENV = ''
MONGO_URI = ''
PORT = ''
JWT_SECRET = ''
MAIL_ADDRESS = ''
MAIL_PASSWORD = ''
CLIENT_URL = ''
SERVER_URL = ''
  • gmail nodemailer password generation

  • MongoDB collection names are todos and users. Any URI should work just fine. But be careful about collection name collision.

  • Default ones are below but it can vary if ports are in use.

CLIENT_URL = 'http://localhost:1234'
SERVER_URL = 'http://localhost:3000'

frontend

SERVER_URL = ''
  • Default one is 'http://localhost:3000'

To Run App (with .env vars!)

backend

cd backend
npm i
npm start

frontend

cd frontend
npm i
npm start

Shortcut from the root

npm i
npm run prepare
npm run kickstart

About

MERN Example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published