Quick start
Installation
- You need
Node.js
installed on your machine, if you don't have it, you should install it - Clone project from github or download an archive
cd
to your downloaded Argon app- Install necessary dependencies:
Via node npm
package manager
- Run
npm install
on the project root
By using yarn
package manager
- Run
yarn install
on the project root
Configuration for Posgresql database and Redis data structure store
Via Docker
- Install docker on your machine
- Run
docker-compose up -d
in a terminal on the project root
Via another choosen solution.
- Install your Posgresql database
- Install your Redis server
- Change connection configuration, from your root
cd
toenv-files
folder and change the following configurations with your own:
- For Posgresql connection:
DATABASE_URL=http://127.0.0.1:5432 DATABASE_NAME=creativeTim DATABASE_USER=creativeTim DATABASE_PASSWORD=creativeTim
- For Redis connection:
REDIS_HOST=localhost REDIS_PORT=6379
Migrations and seeds
- For database tables structure, in project root run:
npm knex migrate:latest
oryarn knex migrate:latest
if you are usingyarn
as the default package manager - To create a default user run:
npm knex seed:run
oryarn knex seed:run
if you are usingyarn
as the default package manager
Usage
Register a user or login using [email protected] and secret and start testing the preset (make sure to run the migrations and seeders for these credentials to be available).
Besides the dashboard and the auth pages this preset also has an edit profile page. Keep in mind that all the features can be viewed once you login using the credentials provided above or by registering your own user.
To start using this design system you will need to import some files in your current project or start from scratch using our template (scroll down in this page to view it).
CSS
Copy-paste the stylesheet <link>
into your <head>
before all other stylesheets to load our CSS.
JS
Many of our components require the use of JavaScript to function. Specifically, they require jQuery, Popper.js, and our own JavaScript plugins. Place the following <script>
s near the end of your pages, right before the closing </body>
tag, to enable them. jQuery must come first, then Popper.js, and then our JavaScript plugins.
We use jQuery’s slim build, but the full version is also supported.
Need to use a certain plugin in your page? You can find out how to integrate them and make them work in the Plugins dedicated page. In this way you will be sure that your website is optimized and uses only the needed resources.
Starter template
Be sure to have your pages set up with the latest design and development standards. That means using an HTML5 doctype and including a viewport meta tag for proper responsive behaviors. Put it all together and your pages should look like this:
Important globals
Argon employs a handful of important global styles and settings that you’ll need to be aware of when using it, all of which are almost exclusively geared towards the normalization of cross browser styles. Let’s dive in.
HTML5 doctype
Bootstrap requires the use of the HTML5 doctype. Without it, you’ll see some funky incomplete styling, but including it shouldn’t cause any considerable hiccups.
Responsive meta tag
Bootstrap is developed mobile first, a strategy in which we optimize code for mobile devices first and then scale up components as necessary using CSS media queries. To ensure proper rendering and touch zooming for all devices, add the responsive viewport meta tag to your <head>
.
You can see an example of this in action in the starter template.