Skip to content

A simple To Do application with Nodejs, Express, Socket.io, Mongodb and React.

License

Notifications You must be signed in to change notification settings

yumikodev/todo-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ToDo App

This's a simple ToDo app writing in JavaScript with Nodejs, express, MongoDB, Vite + React and Socket.io.

Cloning git repository

To download this project, clone the repository using Git.

git clone https://github.com/Yumiko0828/todo-app.git

Installing dependencies

The project has a Back-end (~/server) and a Front-end (~/client).

cd <client or server> # To change de directory

npm install # If you're using NPM.
yarn install # If you're using YARN.
pnpm install # If you're using PNPM.

Configuration

Rename ~/server/.env.example to ~/server/.env and enter your MongoDB URI, it should look like this:

MONGODB_URI=<URI>

Start app in development mode

First the Back-end.

cd server
npm run dev

Then the Front-end (in other terminal).

cd client
npm run dev

Check the output in your terminal.

Start app in production mode

The Back-end.

npm start

To Build the Front-end.

cd client
npm run build
npm preview # To see a preview

License

This project is licensed under the MIT license.