Skip to content

Installation

Jan Skowronski edited this page Oct 17, 2019 · 1 revision

Installation

Autsera is a standalone frontend only application written in React. After building it can be served from any web server.

Building for production

Requirements: npm and node

git clone [email protected]:fac-17/Autsera.git
cd Autsera
npm install --production
npm run build

After successful compilation build folder will ccntain all is needed to use the app. It can be served from any static web server. To use Progressive Web App features like installing on the client device and assets caching it has to be served either on localhost (for testing) or through https protocol.

Note that it cannot be accessed using file:// protocol of the browser.

Local testing and development

Requirements: npm and node

git clone [email protected]:fac-17/Autsera.git
cd Autsera
npm install 
npm start

Local development server is started by default on localhost:3000.

Note that PWA features are NOT available in development server, you need to build and serve it from build folder:

npm run build
npx serve -s build

You will have a production build server running on localhost:5000

Testing

Our test runner is Jest and all the test suites are started using test script:

npm test
Clone this wiki locally