Coder Social home page Coder Social logo

ro00 / todoify-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from luxwarp/todoify-server

0.0 0.0 0.0 336 KB

Todoify Server, a simple to-do with categories, REST API built with NodeJS, Express, JWT, and Mongoose.

Home Page: https://todoify.codeiolo.org

License: ISC License

JavaScript 100.00%

todoify-server's Introduction

todoify iconTodoify Server

Intro

Todoify Server, a simple to-do with categories, REST API built with NodeJS, Express, JWT, and Mongoose. Authenticated users can only get and manipulate categories and to-do's that matches the authenticated user.

If you want to use our public API to build your own front-end Check our API documentation on postman for endpoint descriptions.

Stay tuned for updates in a near future! :D

Features

  • User
    • Registration
    • Account activation
    • Authentication (login)
    • Get user info
    • Update user
    • Delete user
    • Logout (disable all refresh tokens.)
    • Refresh Token
    • Reset password
  • Categories
    • Create new
    • Get all
    • Get one by id
    • Update by id
    • Delete by id
  • To-do's
    • Create new
    • Get all
    • Get one by id
    • Update by id
    • Delete by id

Check wiki for change log and more information.

We also have have a separate Todoify client built with VueJS. It's also open source and interacts with Todoify server. Try out Todoify Client live at todoify.codeiolo.org

Requirements

Make sure you have PM2 installed globally

npm install pm2 -g

Install

Start off by downloading Todoify Server

git clone https://github.com/codeiolo/todoify-server.git

cd in to your todoify-server folder and copy .env.example to .env

cp .env.example .env

edit your new .env file and change all information to match your own settings

nano .env

save .env file and then install dependencies

npm install

Make sure you have PM2 installed globally

npm install pm2 -g

To start Todoify server in development mode

npm run dev

To start Todoify server in production mode

npm run production

You should now see in your console that Todoify server is running. Todoify server runs with help of PM2 so if the server crashes while running it restarts automatically, both in development and production mode.

If you don't want to start Todoify server with PM2 you can run

npm run single-start

or just

node ./index.js

If Todoify server loses connection to your MongoDB server it will try to reconnect every 5 second until you kill the Todoify server manually or it gets connected again.

By default Todoify server does not use HTTPS, the easiest way to get your connection encrypted is by using a web server like Nginx or Apache and proxy your traffic from your domain via SSL and down to Todoify server that runs on it's own port.

License

ISC Mikael Luxwarp Carlsson

Note

Feel free to contribute the way you want.

todoify-server's People

Contributors

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