A simple todo API made with NodeJS, ExpressJS, MongoDB and Angular. Can be used as a back-end for learning front-end technologies or vice versa fully created with working api.
Run git clone https://github.com/helios1101/Mean-Todo-App
First download this project to your computer using above instructions.
Setup Project
Run cd todoapp-angular
to go inside the directory
Run npm install
to install all the dependencies.
Run npm install -g @angular/cli
to install Angular CLI globally.
Run ng serve
to run the Development Server
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
To generate Build files Run ng build
to generate Built Files in the dist directory.
First download this project to your computer using above instructions.
Database Setup
Download and isntall MogoDB.
Make sure that the database is running at 127.0.0.1:27017
Project Setup
Now run cd todo-api
to go inside the directory
Run npm install
to install all the dependencies.
Run npm install -g nodemon
to install NodemonGlobally.
Run npm start
to run the NodeJS Server.
Since this request includes CORS use postman at http://localhost:3000/api/todos