Source code for the Lykke website. Built with Next.js and styled-components.
- Git
- Node: 8.x or greater
- Yarn: See Yarn website for installation instructions
- A clone of this repo on your local machine
cd lykke-website
to go into the project rootyarn
to install the website's npm dependencies
yarn dev
to run in development mode. You can also specifyPORT
env variable- Open http://localhost:3000 to view it in the browser
This project uses dotenv for injecting configuration.
You may find the list of configuration options in config.js
file.
To provide configuration to the Docker environment use conventional -e NAME=VALUE
arguments.
git checkout master
from any folder in your locallykke-website
repositorygit pull origin master
to grab the latest changesgit checkout -b your-branch-name
to create a branch
git add && git commit
git push origin your-branch-name
- Go to the Github and submit a PR against
master
General structure is as follows:
.
├── README.md
├── components
│ ├── head.js
│ └── nav.js
├── next.config.js
├── node_modules
│ ├── [...]
├── package.json
├── pages
│ └── index.js
├── static
│ └── favicon.ico
└── yarn.lock
Routing in Next.js is based on the file system, so ./pages/index.js
maps to the /
route and
./pages/about.js
would map to /about
.
The ./static
directory maps to /static
in the next
server, so you can put all your
other static resources like images or compiled CSS in there.
Out of the box, we get:
- Automatic transpilation and bundling (with webpack and babel)
- Hot code reloading
- Server rendering and indexing of
./pages
- Static file serving.
./static/
is mapped to/static/
Read more about Next's Routing
Content submitted to Lykke website is CC-BY-4.0 licensed, as found in the LICENSE-DOCS.md file.