This project requires NodeJS and NPM. Node and NPM are really easy to install. To make sure you have them available on your machine, try running the following command.
$ npm -v && node -v
8.11.0
v16.15.1
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
BEFORE YOU INSTALL: please read the prerequisites
Start with cloning this repo on your local machine:
$ git clone https://github.com/Oleksandr073/ToDoApp-JS.git
$ cd ToDoApp-JS
To install and set up the packages, run:
$ cd client
$ npm i
$ cd ../server
$ npm i
$ cd ..
To create .env
, run:
$ cd server
$ cp example.env .env
$ cd ..
This task will copy example.env
as .env
inside your local server
folder
$ cd client
$ npm run build
This task will create a distribution version of the project
inside your local client/public/
folder
$ cd client
$ npm run dev
This task will create a development version of the project
inside your local client/public/
folder
$ cd client
$ npm run watch
This task will create a development version of the project
inside your local client/public/
folder whenever you change the code in the client
folder
$ cd server
$ npm start
This task will start the server
Note this requires Building a distribution or development version first
$ cd server
$ npm run dev
This task will restart the server whenever you change the code in the server
folder
Note this requires Building a distribution or development version first