Giter Club home page Giter Club logo

teacherdirectory's Introduction

TeacherDirectory

This Directory allows teachers to Create an account, Login and manage assignments.

Tech Stack

Server: Node,Express Database: MongoDB Tools: Postman

Names of all ENV Variables

- MONGODB_URI
- JWT_SECRET
- SALT

Instructions on Installing & Running Locally

git clone https://github.com/ElleDavis/TeacherDirectory cd into yourr cloned teacherDiectory_Api

install dependencies;

  • npm init -y
  • npm i: "bcrypt": "dotenv": "express": "express-validator": "helmet": "jsonwebtoken": "mongoose": "morgan":

Endpoints, Parameters, Schema

  1. Server: app.get("/") rreturns "Welcome to my API"

  2. Teacher Routes:

  3. Assignments Routes:

  4. Authenticate Teacher

    • POST: Login teacher

Teacher Schema

     ```
username {type:String, required:true}, 
email: {type:String,required:true},
birthday: {type:String, required:true},
age: {type:Number},
password: {type:String,required:true}
    ```,

Assignment Schema:

     ```
created_by: {type:String, required:true},
created_at: {type: Date,default: Date.now()},
assignment_name: {type:String, required:true},
assignment_subject: {type:String, required:true},
assignment_due: {type:String, required:true},
private: { type:Boolean, required:true}
    ```

Updates:

Adding student accounts

https://elle-teacherdirectory-api.herokuapp.com/

teacherdirectory's People

Contributors

elledavis avatar

Stargazers

 avatar sl8//ton avatar  avatar Raven avatar  avatar Wendy Vuong avatar  avatar Felecia Davis avatar Eros Nolasco Mendoza avatar  avatar  avatar Jaime Mitchell avatar Liubov Sariban avatar  avatar  avatar iamWajjih avatar  avatar Abraham E. Tavarez avatar Marcus Meekins avatar Janette Campbell avatar  avatar  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.