- This repository contains both back-end and front-end side scripts of a task manager application that runs on the web.
- The
/api
folder contains a script that runs on the server and/web
contains everything running on front-end side. - I've used MERN stack: express and mongodb for the API, ReactJS for the webapp.
- This build requires Node, npm/yarn and mongodb.
- Install NodeJS on your system. you can find more about NodeJS here.
- To install the dependancies you can use either npm or yarn, I recommand yarn though.
- Open the
/api
directory and runyarn install
command which will install all the required dependancies for the API. - Open the
/web
directory and runyarn install
command which will install all the required dependancies for the webapp. - Before running the API you will need to create a
.env
file inside/api
folder and provide: MONGO_URI, PORT and SECRET_KEY enviroment variables. - Final step: Open the
/api
folder and runyarn start
this will start the API server at the port you specified in the.env
file. Simultaniously log into the/web
folder and runyarn start
this will start the webapp at port 3000.
- To run tests on the API you can use
yarn test
command. This will execute all the unit and integration tests residing in the/api
folder.