Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mern crud test #41

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets" : ["@babel/preset-env","@babel/preset-react"]
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
56 changes: 6 additions & 50 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,56 +1,12 @@
# Let's code some JS!

Hey, welcome to the first coding challenge of your interview process, you'll be presented with a set of steps to accomplish in order to get yourself graded on
install node_modules

> Fullstack JavaScript using the MEAN stack
#npm install or yarn install

## The Prereqs
This challenge assumes your knowledge or skills to leverage on the following topics,

- JavaScript
- NodeJS
- Express
- MongoDB
- Mongoose (or another nodejs based ORM for mongodb)
- RESTful APIs, webservices
- A client side MV* framwork or library (Angular1, Angular2, React(not an mv*, tho) )
- Code quality and testing
#run this app

## The rules
-npm run webpackk
-npm start

This challenge is not set by any hard rule regarding time or style, although both will play key factors on your assessment, yet, here are some rules because... rules

* You have to fork this project and work on your copy of the code for this to work
* You must create a commit per step of the challenge finished, wether you want to push it or not is up to you
* You have to open a pull request to the original repo once you feel your code is ready, for your code to be assessed
* You are not limited to the set of tools listed on **The prereqs**, you can use any additional tools you feel or know will aid you on your quest
* You don't need to complete the whole challenge to create a pull request, if you get stuck at some point, create the pull request and write your issues in the comments

## The challenge

You will be creating a simple server-client application so common nowadays, using the MEAN stack, the requirements are as follows.

- As an individual,
- I need a way to create lists of my favorite stuff ( so cliche, right? ) so, several lists of different stuff (books, movies, stores, pizza flavors, whatevs...)
- I need a way to add, edit, and delete items on such lists
- I need a way to view the lists I create
- As a developer,
- I need the node_modules to be ignored by git
- I need to be able to access the CRUD capabilities of the lists through a RESTful API, json based, from external domains
- I need schemas ( mongoose preferred ) for the Lists and Items entities
- I need an exposed CRUD API to affect the Lists and Items entities using the correct HTTP verbs for each
- Create, update, remove, fetch all and fetch by id should be supported for lists and items (10 endpoints total)
- I need middleware to happen on each request validating that the user has a cookie named "auth" or not (log the value to output, we are not managing authentication of any kind just yet)
- I need a test suite testing the endpoints
- I need a test suite testing the middleware covering the cases where the user has a cookie named "auth", a cookie with another name or no cookie at all


## The small print

Stuff that will be graded

Logic and code complexity ( How easy will my code be to maintain by someone else? Am I using good practices and/or design patterns? )
Code coverage ( Is my code tested? Are all scenarios considered? )
Requirement coverage ( Is the application doing what it is meant to be doing? )
Rule compliance ( Did i follow the few rules set on __The rules__ ? )

#and connect with your database
Loading