Code Monkey home page Code Monkey logo

dontpad's Introduction

dontpad

Advanced Dontpad - Editor online without identity

Deploy on Heroku App: https://dontpad.herokuapp.com/

Examples:

Features

  • Don't login, just use a URL
  • Don't save, any changes is auto-saved
  • Format font-style, font-family, font-size, color
  • Format paragraph, headings, code, align, list
  • Insert link, image, table, video, file, symbol
  • Support familiar and utility shortcut
  • Support render to HTML code, Preview and Print
  • Realtime, don't refresh page when your friends change
  • Private, Security and No Advertising

Introduciton

Frontend Platforms

Using ReactJS, Socket.IO (realtime), Froala Editor

Backend Platforms

Using NodeJS, Socket.IO (realtime)

Database and Deployment

Using Heroku (Host, Domain), MongoDB (mongoose), Mongo Atlas (Cloud)

Quickstart

  • Clone source code to your local
git clone https://github.com/huynhsamha/dontpad.git
  • Install npm packages
npm i
# or
yarn

Development

Start server NodeJS

At root of project

npm start
# or
yarn start

Now server is running on http://localhost:4200

Start client ReactJS

At root of project

cd client/

npm start
# or
yarn start

Now we can open browser at http://localhost:3000.

Database MongoDB

At root of project

touch .env

Create file .env with the following line:

URI_MONGO=mongodb://localhost/dontpad

Change the URI Mongo for your production

Testing and Deployment

At root of project, run server NodeJS at port 4200:

cd client/

### build frontend reactjs
npm run build
# or
yarn build

### start server nodejs
# return to root of project
cd ..

npm start
# or
yarn start

On your browser, open http://localhost:4200 to view the dontpad application

Deploy on Heroku

Configure on Heroku

  • Login or sign up new account on heroku
  • Add new application
  • At local, create new directory for heroku
  • Copy directory server to the above directory
  • Remove .git in new directory
  • At new directory, initialize new git by git init
  • At heroku, create new git for app
  • Install heroku at local machine (if you haven't done yet)
  • Login heroku account at local machine: heroku login (if you haven't done yet)
  • Remote local to heroku by git remote add heroku [your git url]

Configure database MongoDB on Mongo Atlas

  • Login or sign up new account on Mongo Atlas
  • Create new cluster and new database
  • In the options (collections, users, ...) in tabs at new database, choose option users
  • Create a new user with difficult password
  • Get uri mongo on Atlas and change <dbuser> and <dbpassword> with new user created.
  • Copy the uri to file .env at local directory
  • Now you can commit and deploy to heroku

Commit and Deploy

  • Commit all changes and deploy to heroku:
git status
git add -A
git commit -m "first deploy"
git push heroku master
  • Now, you can open the herokuapp to view your achievement.

Donate

Donate to my paypal

dontpad's People

Contributors

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