Giter Club home page Giter Club logo

101380203_comp3123_assignment1's Introduction

COMP 3123 – Full Stack Development

Netlify Status Made with love by Bruno🧡 101380203

Running this project

Created and tested using:

$ node --version && npm --version && npx --version
v20.8.0
10.2.0
10.2.0

Run this project for the first time with:

npm i && npm start

You can only run this after npm i:

npm start

Endpoints

Sr. # Method Endpoint Response Code Description
1 POST /api/v1/user/signup 201 Allow user to rcreate new account
2 POST /api/v1/user/login 200 Allow user to access the system
3 GET /api/v1/emp/employees 200 User can get all employee list
4 POST /api/v1/emp/employees 201 User can­ create new employee
5 GET /api/v1/emp/employees/{eid} 200 User can get employee details by employee id
6 PUT /api/v1/emp/employees/{eid} 200 User can update employee details
7 DELETE /api/v1/emp/employees?eid=xxx ­204 User can delete employee by employee id

Database specification

Database engine: MongoDB with Mongoose.

Users Collection:

Field Name Type Constraint
_id Object ID Auto Generate
username String (100) Primary Key
email String (50) Unique
password String (50) May be encrypted with other fields

Employee Collection:

Field Name Type Constraint
_id Object ID Auto Generate
first_name String (100) Required
last_name String (50) Required
email String (50) Unique
gender String (25) Male/Female/Other
salary Float Required

Postman collection

Variables

Key Value
URL localhost:3000
PROD_URL http://170.187.155.55:3005

Production API deployed on Linode [Arch] Server using Docker.

101380203_comp3123_assignment1's People

Contributors

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