Giter Site home page Giter Site logo

neverwrote-ethan's Introduction

CSE2WDC/CSE5WDC Assignment: Neverwrote

This repository contains a template which should form the foundation of your assignment.

Getting started

  1. Create a private fork of this repository on Bitbucket
  2. Clone your fork of the repository and start coding

Command reference

Run backend API tests

$ docker-compose run --rm api jasmine

After you have finished the backend, all of the tests should pass.

Start the servers

$ docker-compose up

You will then be able to view the web app at http://localhost/. Note that the web page will be blank for now since you haven't added anything to the frontend yet!

Watch files and automatically bundle

$ docker-compose run --rm frontend gulp

Project structure

The Neverwrote project has a very similar structure to the blog application from the labs. You will only need to work in the api/ directory (for the backend API) and the frontend/ directory (for the frontend interface). The NGINX server is already correctly configured, as are all of the Docker-related things, so there is no need to modify those.

Below are more detailed descriptions of the api/ and frontend/ directories. Locations that you will be mainly focussing on as you develop are marked with an asterisk (*).

Backend API (api/)

api
├── Dockerfile            # Description of Docker image
├── package.json          # NPM dependencies
├── spec                  # The backend tests
├── src
│   ├── app.js            # Express application definition
│   ├── config
│   │   ├── database.js   # Database connection configuration
│   │   └── routes.js     # Code to connect the routes in controllers/
│   ├── controllers
│   │   ├── index.js      # The index route
│   │   ├── notebooks.js  # * API endpoints starting with /notebooks
│   │   └── notes.js      # * API endpoints starting with /notes
│   ├── migrations        # Sequelize migrations
│   ├── models            # Sequelize models
│   ├── seeders           # Sequelize seeders
│   └── server.js         # Server-side entry point
└── start.sh              # Script for starting the server

Frontend interface (frontend/)

frontend
├── Dockerfile            # Description of Docker image
├── gulpfile.js           # Gulp tasks
├── package.json          # NPM dependencies
├── src
│   ├── app.js            # * Express application definition
│   ├── client.js         # * Client-side (browser) entry point
│   ├── components        # * React components
│   │   ├── DevTools.js   # Development tools sidebar
│   │   ├── Home.js       # * Container component containing the app
│   │   ├── MarkdownEditor.js           # Markdown editor component
│   │   ├── NotebookList.js             # * Component for listing notebooks
│   │   └── Root.js       # Root component
│   ├── helpers
│   │   ├── ajax.js       # HTTP request functions used by api.js
│   │   ├── api.js        # Functions for talking with the backend API
│   │   ├── createActionDispatchers.js  # Used to create action dispatchers
│   │   └── createStore.js              # Used to create the Redux store
│   ├── reducers          # * Redux reducers
│   │   ├── index.js      # * Loads and combines reducers
│   │   └── notebooks.js  # * The reducer for dealing with notebook data
│   ├── server.js         # Server-side entry point
│   └── styles
│       └── main.css      # * Custom CSS styles
└── start.sh              # Script for starting the server

neverwrote-ethan's People

Contributors

anibali avatar phuongtp1998 avatar

Watchers

James Cloos avatar  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.