Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/MieuxVoter/mieuxvoter.fr
Site web de MieuxVoter
https://github.com/MieuxVoter/mieuxvoter.fr
Last synced: 4 months ago
JSON representation
Site web de MieuxVoter
- Host: GitHub
- URL: https://github.com/MieuxVoter/mieuxvoter.fr
- Owner: MieuxVoter
- Created: 2018-04-04T02:19:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-06-11T07:24:15.000Z (6 months ago)
- Last Synced: 2024-06-22T14:40:07.846Z (6 months ago)
- Language: JavaScript
- Size: 29.3 MB
- Stars: 6
- Watchers: 3
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Netlify Status](https://api.netlify.com/api/v1/badges/10e21963-4d3d-493c-afc9-c168986f55f0/deploy-status)](https://app.netlify.com/sites/mieuxvoter/deploys)
This is the website of Mieux Voter (aka Better Vote). It is available online at [mieuxvoter.fr](https://mieuxvoter.fr).
## Getting Started
First, install the dependencies:
```bash
npm install
# or
yarn install
```Second, run the development server:
```bash
npm run dev
# or
yarn dev
```Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
## Write blog article using MDX (extended version of Markdown)
1. Add a file on `content/blog/[slug].mdx` to write an article at `https://mieuxvoter.fr/blog/slug`.
2. Add meta contents as a YAML table as the beginning of your article, such as:
```yaml
---
title: 'Premier article'
author: 'Pierre-Louis Guhur'
assets:
graph:
type: json
path: 'example-plotly.json'
---
```3. As seen above, you can add assets (stored in `content/assets`) as dictionary of file. In this case, you will be able to access those assets in your article, such as:
```mdx
```
4. Yes, you can add JSX components, but that's not completely magical. Basic coponents (such as headers and paragraphs) are imported by the MDX plugin. Other (such as Plot) are directly imported in `pages/blog/[slug].js`.
## Write blog article using Wordpress
You can also a Wordpress CMS by modifying `.env`.
## Learn More
To learn more about Next.js, take a look at the following resources:
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!