Code Monkey home page Code Monkey logo

userapi's Introduction

USERAPI

An authenticated Node.JS Express Server which serves a simple user website which allows CRUD operations on a REST API.

Two routing templates have been used.

The first routing is api routing which provides an interface for clients who wants to use this REST API for CRUD user operations.

The second routing is web application routing which serves html pages and represents the data from REST API.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

You need to have Node.js and MongoDB installed.

Install Node with npm

npm install node`

Install MongoDB

Please follow instruction for installation from here

Installing

  • Clone the repo by using git clone.
  • Run npm install on the cloned directory.
  • Edit the config.js file to suit your needs.

Install npm dependencies in project folder

Run the following comment to install dependencies. npm install

Run server

Run the following comment on the cloned directory.

npm start

Connect to the web application

Go to the following address. This will show the login page of the web application. If a session started it will display welcome page.

http://localhost:8080

Tools

In order to test REST API postman chrome extension is used.

Authors

Nil Karadağ

Acknowledgments

Here are some useful links to learn and develop:

Pluralsight course - Building AngularJS and Node.js Apps with the MEAN Stack

Pluralsight course - RESTful Web Services with Node.js and Express

Using template engines with Express

Express Tutorial Part 2: Creating a skeleton website

userapi's People

Contributors

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