Coder Social home page Coder Social logo

auth-api's Introduction

auth-server

server features:

  • / (get ,ethod): to show home page (localhost:3000/).
  • /signup (post method) : to enter a new user with username and password (localhost:3000/signup).
  • /signin (post method) : to log in with samse name and password and show user data (localhost:3000/signin).
  • /users (get method) : to show user data by the tokin from login (localhost:3000/users).
  • /secret (get method) : to go to the secrt area by the tokin (localhost:3000/secret).

How to run server:

1- by run in local:

  • clone this repo to your local machine.
  • cd to the repo.
  • in terminal run npm install to install backage that used in this server express , dotenv , jest , supertest , nodemon
  • after that run npm index.js ore use nodemon.
  • there is multible way to see result of this server by browser or thunder client .
  • if u want to add feature to this server there is test by jest you can test features with it before add to main.
  • if you see any issue with my server fork my repo with datals and solution if you have it.

2- by use online app for this server by heroku

UML Diagram

UML

About this server

  • this server untel now undr workinf and many features will be added soon.
  • the food and clothes method make in this server as glopal middle war same as logger.
  • this server contains middleWar way for write functions.
  • this server contain 404 error , 500 eror handler.
  • this server has test for all methods you can test before use anytime :).\

heroku link

saleh-basic-api-server

GitHub actions link

The pull request link

auth-api's People

Contributors

salehziad avatar

Watchers

 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.