Making Session possible.
This project is built with Next.js, Tailwind CSS, SCSS, Sanity, & Typescript.
- Node.js 21.6.2 or later
- Yarn 1
- Install
yarn
npm install yarn -g
- Install dependencies
Using --frozen-lockfile
makes sure that the environment is consistent on any machine by installing the exact package versions listed in the yarn.lock.
yarn install --frozen-lockfile
Now you can run the development server:
yarn dev
Open http://localhost:3000 with your browser to see the Session homepage.
You can start editing the page by modifying pages in the app/
directory. The page auto-updates as you edit the file.
The app/api
directory is mapped to /api/*
. Files in this directory are treated as API routes instead of React pages.
- If you want to make a link to a location on the website use the next/link component with a relative path. i.e.
https://token.getsession.org/updates -> /updates
You can run the project in a production environment by running:
yarn build:production && yarn start:production
This will build the site with the production configuration and start the server. Make sure to do this locally and check for errors before pushing any code changes to your hosted repository
You can test the project in a staging environment by running:
yarn run build:staging && yarn run start:staging
This will build the site with the staging configuration and start the server.
Distributed under the GNU GPLv3 License. See LICENSE for more information.