+
Skip to content

alan345/saas

Repository files navigation

Ales by Gooplus

This project was generated with angular-cli version 1.0.5.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive/pipe/service/class/module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Installing Dependecies

  1. Clone this repo from Git
  2. Run npm install in your command line.
  3. Edit config.js in /server/config folder.
  4. Run node seed.js to insert the admin user into database and create uploads folder. Admin email is test@test.com and password is testpass. Make sure mongod is running.
  5. After login navigate to localhost:3000/#/admin to access admin panel. =======

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor. Before running the tests make sure you are serving the app via ng serve.

Deploying to GitHub Pages

Run ng github-pages:deploy to deploy to GitHub Pages.

Viewing the App

Open your favourite web browser and point to http://localhost:3000

Enjoy!

Summary

  1. ng build --watch
  2. nodemon npm start
  3. http://localhost:3000

install mongodb https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/

stop apache service apache2 stop

pm2 start npm -- start

Help with angular-cli

To get more help on the angular-cli use ng --help or go check out the Angular-CLI README.

Preview of the app

Login Form

Login Form

Password Reset Form

forgot_password

Form

Form

Server Response in console logs

Server response after submitting form

User Forms

form_table

Edit Form

edit_form

Admin Page

admin_page

Profile Page

profile_page

Users document in MongoDB with forms array ref

Users document in MongoDB

Forms Document in MongoDB with ref to the user._id (owner field)

User submitted forms page

To get more help on the angular-cli use ng help or go check out the Angular-CLI README.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载