Code Monkey home page Code Monkey logo

fullstack-project's Introduction

Fullstack-Typescript-Project

Prerequisites

  1. Install mongodb
  2. Install nodejs

Setting Up

  1. Create a .env file in the root directory and copy the content from .env.example

  2. Make sure mongodb is running

  3. Install dependencies: yarn

  4. Use this command for development mode: yarn run watch

  5. If you need to customize your env, take a look at secrets.ts file

Requirements

Below are the steps that you need to finish in order to finish this module

  1. Explore the code base, start with server.ts
  2. Create all the mongoose schema for your ERD
  3. Create CRUD endpoints for all the schema
  4. Separate the routers and controller, controller goes into the controller folders. Controllers only handles request and response
  5. Create more controller for your app if needed. Eg: borrow books, add product to order
  6. For business logic like saving data to database, filtering, searching or updating, these are services and goes into services folder
  7. Add authentication middleware using passport, google and jwt strategy
  8. Add tests for your controllers and services. Remember to create the jwt token for your tests, because if your controller is protected, then the test should send the token also
  9. Create a client folder in the project root, you will set up your react frontend in here. If there's a problem running the react app after install, try creating a .env file inside client folder. And put this line in there: SKIP_PREFLIGHT_CHECK=true

fullstack-project's People

Contributors

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