aXlireza / proj-pledge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quick node start

  1. Make sure that you have Node.js v8.15.1 and npm v5 or above installed.
  2. Clone this repo using git clone --depth=1 https://gitlab.rastava.com/client-contracts/d-c-ca/pledge/pledge-frontend.git <YOUR_PROJECT_NAME>
  3. Move to the appropriate directory: cd <YOUR_PROJECT_NAME>.
  4. Run npm run setup in order to install dependencies and clean the git repo.
  5. At this point you can run npm start(in case this command didn't work as expected, you can execute node server) to see the example app at http://localhost:3000.
  6. Run npm run clean to delete the example app.

Quick docker start

  1. Once the cloning is complete, you can buold the image by docker build -t <name>/<project_name>:<project_version> .
  2. Now to run the image execute docker run -p <local>:140 <image_id>

Structure

  • All the programable files are in the ./app directory in the root of the project
  • Inside the ./app there are two directories named ./app/client and ./app/controller
  • The controller is basically where front-end interacts with the back-end _ For example, there is a accountController.js files which handles login and logout and many more APIs which are related to the accounts.
  • The client directory is where front-end is setup _ the ./client/src is where important stuff has been coded
  • In the ./src there is assests which contains images and svg files
  • The ./views is where pages are pages come together using the ./components but the main focus of the files in ./views is to handle the data which is going through the front-end and also to keep the required components together in place.
  • The ./App.js file is where the Routes are defined in the application.

About

License:MIT License


Languages

Language:JavaScript 82.5%Language:CSS 11.3%Language:Handlebars 4.8%Language:HTML 1.3%Language:Dockerfile 0.1%